Dirstack is a shell script that creates a list of unique directories from the history file in chronological order.
The cd-functions, which I have developed to navigate easily through directories from within the commandline, depend heavily upon dirstack.
In this video I analyze how the dirstack variable is been build.
https://tilvids.com/w/bWz2X7KG3MzE2aWZAggMHU
@itsfoss broken
Enjoy the holidays everybody!
And feel free to enjoy my drastically improved shell commands for directory navigation;
dir-stack (C-h) to recall directories from the $HISTFILE, via a convenient chronological ordered list. https://codeberg.org/oxo/dotf/src/branch/main/zsh/function/dir-stack.sh
cd-child (C-j) to easily navigate sub directories. Press C-j again to drill deeper down into the directory stack.
Then there are cd-up (C-k) and cd-yazi (C-l). With the last command mentioned you can use yazi to navigate to a specific directory (there is also a lf variant available).
The commands are making use of fzf and can be get from: https://codeberg.org/oxo/dotf/src/branch/main/zsh/function/cd-funcs.sh
I am currently planning to make a demo video on this command set. Publication will be announced shortly!
@pom Here too!
I decided to also decentralize my emacs configuration. Carefully. Step by step. :)
#emacs #config
https://codeberg.org/oxo/dotf/src/branch/main/emacs
Latest update is a decentralized configuration. With that my zsh runcom effectively contains only one line:
for sh_function in $zsh_function/*.sh; do
source $sh_function
done
#linux #commandline #zsh #runcom
https://codeberg.org/oxo/dotf/src/branch/main/zsh/.zshrc
@al3x
Prot is the best! Thanks for sharing!
@sacha
O no, I think I have made an error. This one liner only concatenates mp3 files. Totally out of scope..., sorry!
@sacha
When you want to separate the audio stream you can use:
cat-audio() {ffmpeg -i "concat:${(j:|:)@[2,-1]}" -acodec copy $1} ## concatenate mp3 audio files usage: cat-audio output.mp3 *.mp3
source:
https://codeberg.org/oxo/note/src/branch/main/catalog/source/sh
@itsfoss
I never want to automount and therefore wrote mountr:
https://codeberg.org/oxo/tool/src/branch/main/mountr
@itsfoss
Cmus (audio), mpv (video), feh (image) and zathura (pdf)
The Mozilla foundation has an open survey about how they should approach the future, if you care feel free to fill it out. Especially so if you've been unhappy about the organization for years https://mozillafoundation.tfaforms.net/101
Neovim kickstart is nice! Learning some lua along the way.
My only issue now is getting zig fmt working properly in the default script. Conform is messing up only the first line when autoformat is executed while saving a zig file...
Solving that will be my goal for today.
#linux #nvim #lua #zig_fmt #conform #autoformat
Today I struggled with the language formatter in neovim for the zig programming language.
Every time when saving a file it printed ANSI escape characters at the beginning of the zig file.
Workarounds in the init.lua didn't solve the problem.
An upgrade from the latest stable release of neovim (0.10) to the nightly build (0.11.0-dev-1103) fortunately did!
Continuing my journey...
#linux #neovim #nightly #fmt #zig
@kris Thanks for your tip! I will certainly take a look at eglot.
@itsfoss commandline, emacs and qutebrowser is pretty much from where I live.
@ahihi and a moonlander! Also nice.
Hey, I've been using Session to chat with complete privacy and security. Come join me! My Account ID is
053f34f21e1279ddc0832a508dab5eb91c53022f57bd1135881d01f9313884ef6a
Download it at https://getsession.org/download
#private #secure #messenger #session