5 ms·
From that perspective, using Ctrl+R and Ctrl+S for reverse-i-search in a shell saves me so much time from writing commands especially big Kubernetes ones.
by alexchantavy 4y ago
From that perspective, using Ctrl+R and Ctrl+S for reverse-i-search in a shell saves me so much time from writing commands especially big Kubernetes ones.
- namuol 4y agoCmd/Ctrl-F in general is probably the biggest invisible time-saver if you can count UX patterns.
- hedora 4y agoThe 'history' command is helpful the 1% of the time Ctrl-R and Ctrl-S fail you.
- bobbob1921 4y agoBash alias. And my large bash_alias file
- eftepede 4y agoTry fzf for history management, it's a life changer.
- 5e92cb50239222b 4y agoAdd fzf to get fuzzy search for your history. I reuse long complicated commands all the time by pressing Ctrl+R and then typing the first letters of a few words I remember using. https://github.com/junegunn/fzf https://github.com/junegunn/fzf It's also useful to remove duplicate commands and store infinite history. Add this to ~/.bashrc: export HISTFILESIZE= export HISTSIZE= export HISTCONTROL=ignoredups
- dllthomas 4y agoChanging HISTFILE by context has been a huge win, keeping commands from generic system administration or different projects from getting in the way as I search back through my history to do a thing again.
- msluyter 4y agoYou can also add a comment for searchability, as in: > big hairy command with --lots --of arguments # foobar Then you can search for 'foobar' via fzf or whatnot.
- jmiserez 4y agoGive hstr a try: https://github.com/dvorka/hstr https://github.com/dvorka/hstr It's saved me countless hours over the years as it's just so much better than regular CTRL-R. I also find it to work better than fzf.