Being able to just enter a partial command, and hit [up] to jump to prior commands that started in the same way in zsh is a godsend.
Programmer Humor
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
If you ever have to go back to bash, it supports it as well. In my bashrc:
bind '"\C-p":history-search-backward'
That's ctrl-p, but I'm sure the up arrow is possible too.
I use vim keybindings and have ESC,/
to do a reverse command search.
The one people see me doing that gets a "huh?" Is:
~$ !find
find -type f -name '*blah*' -print0 | xargs -0 gzip
~$
"Wait! What did you do?" "Oh. Do you not know about bang?"
This is why I like atuin, I can just press up and start typing part of the command and it will likely find it in my history.
You could already do that with just "Ctrl-R" but without atuin redrawing your screen.
Oh come on! I at least type the beginning so that it filters the history
Linux Recall
I wish this wasn't so painfully true.
Featherpad, copy, paste. Extra work, but you get a work log
I feel like there should be a cursed "long way round" for this that involves needlessly copying .bash_history to a "text file", running it through an asciibetical sorter (for "efficiency"), using sed to null out any command which doesn't match the search term...