3 ms·
I actually resolved most of that common issues with just bash: :) Substring history search, so you can use just a substring to look for a argument,command. Bin
by h2hn 10y ago
I actually resolved most of that common issues with just bash: :)
Substring history search, so you can use just a substring to look for a argument,command. Binded to ctr+r/s by default. ;)
https://github.com/liloman/asyncBash#use https://github.com/liloman/asyncBash#use
Changing directories: Last n directories, transparent popd/pushd.
https://github.com/liloman/dirStack https://github.com/liloman/dirStack
Movements: vim-surround for your cli, so you can do ysiw" o whatever... ;)
https://github.com/liloman/bash-surround https://github.com/liloman/bash-surround
Control-n right: So just type the start and control+n to search for the arguments/commands starting with whatever. And the classical up/down to look up for a complete history line:
https://github.com/liloman/dotfiles/blob/master/bash/.inputrc#L234 https://github.com/liloman/dotfiles/blob/master/bash/.inputr...
https://github.com/liloman/dotfiles/blob/master/bash/.inputrc#L170 https://github.com/liloman/dotfiles/blob/master/bash/.inputr...
There're a ton of hidden functionality and customization behind the classical bash instalation. :)
- tambourine_man 10y agoThat is amazing, thanks for sharing. I'm gonna steal some ideas from asyncBash
- h2hn 10y agoI'm glad you liked it. :) I don't understand why the default bash/readline doesn't get something related for substring search or way better autocompletions, it's really not that hard definitely (actually quite easy) and even when that's the reason for a lot of people to choose zsh over bash.