2 ms·
The first thing I add to my shell RC file is 'set -o vi' Then I can use the vi/vim search keys - escape - '/' - <type words> - hit n or N to move back and
by mooreds 2y ago
The first thing I add to my shell RC file is 'set -o vi'
Then I can use the vi/vim search keys
- escape
- '/'
- <type words>
- hit n or N to move back and forth
Way way easier than using the up or down arrow.
- SoftTalker 2y agoUnless you use emacs, then the shell history keys seem normal
- chasil 2y agoPOSIX outlines vi mode, but emacs is not mentioned. "vi - Allow shell command line editing using the built-in vi editor. Enabling vi mode shall disable any other command line editing mode provided as an implementation extension." https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V...
- mooreds 2y agoFair fair. I guess the most important thing is that you pick one style of efficient command line searching and editing and run with it.