Add .inputrc for matched-history up-arrow
David Blume

David Blume commited on 2016-01-05 21:39:21
Showing 3 changed files, with 8 additions and 1 deletions.

... ...
@@ -0,0 +1,5 @@
1
+# http://askubuntu.com/questions/59846/bash-history-search-partial-up-arrow/59855#59855
2
+# arrow up
3
+"\e[A":history-search-backward
4
+# arrow down
5
+"\e[B":history-search-forward
... ...
@@ -47,6 +47,7 @@ See [config.dlma.com](http://config.dlma.com) for more.
47 47
         7. [visual-star-search](http://got-ravings.blogspot.com/2008/07/vim-pr0n-visual-search-mappings.html), so * and # work in visual mode too.
48 48
         8. Assorted favorite colors like [desert](https://github.com/dblume/desert.vim).
49 49
 3. .gitconfig and .gitignore
50
+4. .inputrc
50 51
 
51 52
 #### What's not installed
52 53
 
... ...
@@ -2,7 +2,8 @@
2 2
 set -eu -o pipefail # See: https://sipb.mit.edu/doc/safe-shell/
3 3
 
4 4
 declare -r backup_dir=$HOME/backup_of_dotfiles_`date "+%Y-%m-%d"`
5
-declare -a dotfiles=(".bashrc" ".bash_profile" ".vimrc" ".gitconfig" ".gitignore")
5
+declare -a dotfiles=(".bashrc" ".bash_profile" ".vimrc" 
6
+                     ".gitconfig" ".gitignore" ".inputrc")
6 7
 
7 8
 if [ ! -d $backup_dir ]; then
8 9
     mkdir -p $backup_dir
9 10