inputrc
This commit is contained in:
parent
dfe69f37ea
commit
b6921a26fa
2
bashrc
2
bashrc
|
@ -40,8 +40,6 @@ export ANDROID_HOME=/opt/android-sdk
|
||||||
|
|
||||||
|
|
||||||
# Tweaks
|
# Tweaks
|
||||||
set -o vi
|
|
||||||
|
|
||||||
[[ $- != *i* ]] && return
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
if [ -f /etc/bash_completion ]; then . /etc/bash_completion; fi
|
if [ -f /etc/bash_completion ]; then . /etc/bash_completion; fi
|
||||||
|
|
13
inputrc
Normal file
13
inputrc
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
$include /etc/inputrc
|
||||||
|
set editing-mode vi
|
||||||
|
$if mode=vi
|
||||||
|
set keymap vi-command
|
||||||
|
# these are for vi-command mode
|
||||||
|
"\e[A": history-search-backward
|
||||||
|
"\e[B": history-search-forward
|
||||||
|
set keymap vi-insert
|
||||||
|
# these are for vi-insert mode
|
||||||
|
"\e[A": history-search-backward
|
||||||
|
"\e[B": history-search-forward
|
||||||
|
$endif
|
||||||
|
|
Loading…
Reference in a new issue