fix ctrl-p at terminal prompt

This commit is contained in:
Daniel Flanagan 2016-09-20 03:07:33 -05:00
parent 9683df00c2
commit 184c7f7f48
3 changed files with 14 additions and 0 deletions

6
env/sh/bashrc vendored
View file

@ -173,4 +173,10 @@ if [ -t 0 ]; then
if [ "$PWD" = "$HOME" ]; then
cd "$HOME/.."
fi
# vi modes in the terminal prompt
set -o vi
# except we still want some things to work the old fashioned way
bind '"\C-p": history-search-backward'
fi

4
env/sh/inputrc vendored
View file

@ -1,2 +1,6 @@
"\eOd": backward-word
"\eOc": forward-word
$if editing-mode=vi
"\C-p": history-search-backward
$endif

4
env/sh/tmux.conf vendored
View file

@ -64,6 +64,10 @@ set -g @plugin 'tmux-plugins/tmux-sessionist'
# enable continuum
set -g @continuum-restore 'on'
# let continuum startup on boot
set -g @continuum-boot 'on'
# initialize tmux plugin manager
run '~/.tmux/plugins/tpm/tpm'
unbind-key C-p