diff --git a/env/sh/bashrc b/env/sh/bashrc index 3079386..248c828 100644 --- a/env/sh/bashrc +++ b/env/sh/bashrc @@ -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 diff --git a/env/sh/inputrc b/env/sh/inputrc index dd873d5..1cb6b03 100644 --- a/env/sh/inputrc +++ b/env/sh/inputrc @@ -1,2 +1,6 @@ "\eOd": backward-word "\eOc": forward-word + +$if editing-mode=vi + "\C-p": history-search-backward +$endif diff --git a/env/sh/tmux.conf b/env/sh/tmux.conf index abeea8a..42a7b2b 100644 --- a/env/sh/tmux.conf +++ b/env/sh/tmux.conf @@ -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