This commit is contained in:
Geoffrey Frogeye 2016-05-01 15:02:53 +02:00
parent dfe69f37ea
commit b6921a26fa
2 changed files with 13 additions and 2 deletions

2
bashrc
View File

@ -40,8 +40,6 @@ export ANDROID_HOME=/opt/android-sdk
# Tweaks
set -o vi
[[ $- != *i* ]] && return
if [ -f /etc/bash_completion ]; then . /etc/bash_completion; fi

13
inputrc Normal file
View 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