3 ms·
Two important things missing: 1) This is a huge pet peeve of mine, but it kills me when my coworkers "bash" emacs and sing the praise of vim, then proceed to e
by dorfsmay 9y ago
Two important things missing:
1) This is a huge pet peeve of mine, but it kills me when my coworkers "bash" emacs and sing the praise of vim, then proceed to explain to me that ctrl-R in bash searches for the last command with a given pattern. They also often refuse to believe me that they're basically using emacs controls (because you know emacs' dirty). So, please, if you're in love with vim and use ksh or bash, learn about "set -o vi". Oh, and stop preaching!
2) "help xxx" for any xxx bash functionality, right there from the command line!
- throwanem 9y ago> they're basically using emacs controls But not well implemented! You're supposed to be able to edit your search string, and I've never found a way.
- LukeShu 9y agoHuh? Backspace works the same for me in Bash C-r as it does in Emacs C-r.
- throwanem 9y agoIt never does anywhere for me. Good to know it's supposed to, though; maybe I've got something mapped weird, or the versions of the shell I'm using are old enough to be unwelcoming in this way, or I don't know what, but knowing it's not by design means there's a fix to be found for it. Thanks!
- jmiserez 9y agoYou should try hstr (https://github.com/dvorka/hstr https://github.com/dvorka/hstr). It replaces CTRL-R with a full page interactive history search that really works. Demo GIF here: https://unix.stackexchange.com/a/375914 https://unix.stackexchange.com/a/375914