fix ctrl-p at terminal prompt
This commit is contained in:
parent
9683df00c2
commit
184c7f7f48
3 changed files with 14 additions and 0 deletions
6
env/sh/bashrc
vendored
6
env/sh/bashrc
vendored
|
@ -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
4
env/sh/inputrc
vendored
|
@ -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
4
env/sh/tmux.conf
vendored
|
@ -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
|
||||
|
|
Reference in a new issue