4 ms·
This is indeed a lovely feature I couldn't live without. In bash, you can get it by adding the following to your .inputrc (at least on mac terminal) "\e[B
by CJefferson 15y ago
This is indeed a lovely feature I couldn't live without.
In bash, you can get it by adding the following to your .inputrc (at least on mac terminal)
"\e[B": history-search-forward
"\e[A": history-search-backward
- deleted 15y ago[deleted]
- ohgodthecat 15y agoI believe in bash and zsh the default is ^R and ^S
- shabble 15y agoexcept a huge number of terminal emulators still reserve ^S/^Q for XON/XOFF software flow-control[1]. stty -ixon lives in my init scripts for that reason. [1] https://en.wikipedia.org/wiki/Software_flow_control https://en.wikipedia.org/wiki/Software_flow_control
- sandGorgon 15y agoin zsh you get it by adding bindkey "^[[A" history-beginning-search-backward bindkey "^[[B" history-beginning-search-forward
- gkop 15y agoI add these lines so the left- and right-arrows still work correctly: "\e[C": forward-char "\e[D": backward-char