# .bashrc if [ "$PS1" ]; then # enter the mode set -o vi # this gets us vi mode in everything export INPUTRC="~/.inputrc" # ^p check for partial match in history bind -m vi-insert "\C-x":dynamic-complete-history # ^n cycle through the list of partial matches bind -m vi-insert "\C-z":menu-complete # ^p ^n to go up and down in history bind -m vi-insert "\C-p":previous-history bind -m vi-insert "\C-n":next-history # ^l clear screen bind -m vi-insert "\C-l":clear-screen fi