|set completion-ignore-case On|
|set expand-tilde on|
|set convert-meta off|
|set input-meta on|
|set output-meta on|
|set show-all-if-ambiguous on|
|set visible-stats on|
|set -o vi|
Apr 2, 2012
thanks @deshawnbw! that's for sure a solid
Apr 7, 2012
I like the fast completion! Can you provide some explanation on what everything else does though? I'm assuming the first block is VI keyboard shortcuts?
Apr 10, 2012
cheers @plmtr -- they are actually a number of helpful settings for the terminal input directly.. allowing for such things as skipping words with the control key and arrow cursors..
Apr 10, 2012
Thanks @gregorynicholas - From a little web searching and hunt & pecking around I figured out that CTRL+A = beg of line, CTRL+E = end of line. I guess the next step would be commenting each line for us terminal intermediates such as myself!
Emacs nav keys work by default already, so alt-f / alt-b are forward / back word, alt-a / alt-e are forward back sentence / block, etc... etc...
Also zsh let's you do alt-x and then enter these shell navigation/control commands wit Tab completion too.
Oct 20, 2013
@plmtr: instead of web searching and hunt, you might rtfm:
From Terminal.app: man bash
or, from within emacs: M-x man RET bash RET
and then search for "Commands for Moving"
Jan 15, 2014
What keystroke is
Backward word delete didn't work for me until I checked this setting:
Use option as meta key
And forward word delete only works once I add a key mapping in the same
Keyboard panel with the following settings
- Key: Forward Delete
- Modifier: Option
- Send text: /033d Hit esc, d to insert this
Now all is right in the universe.
@gregorynicholas, this didn't seem to matter but 4 of the double quotes in your example are not actually " characters.
Feb 3, 2015
@rampion it's escape-home
May 18, 2015
"\e[1~" is escape home, what are the others?
Aug 5, 2016
Lines 3 and 4 have smart quotes.
Jan 10, 2017
Feb 2, 2017
Most important lines in my .inputrc:
# From http://www.ukuug.org/events/linux2003/papers/bash_tips/ # Incremental searching with Up and Down. Type 'ssh <up>' to get the last 'ssh' command you used "\e[A": history-search-backward "\e[B": history-search-forward
Mar 30, 2018
Reloading these combinations with
source ~/.inputrc didn't work for me and this worked:
bind -f ~/.inputrc
Jun 6, 2018
Thank you @shoshial: that solved my problems.
also if you know vim, you can set bash or zsh to use vim with: "set -o vi" in your bashrc