From e3977e275609d64c1ae1c27dd8900555fa08c17b Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Thu, 9 Feb 2017 21:07:45 +0100 Subject: [PATCH] further configuration of bash --- bashrc | 4 ++++ inputrc | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 inputrc diff --git a/bashrc b/bashrc index f20f9ba..c1c1812 100644 --- a/bashrc +++ b/bashrc @@ -25,6 +25,10 @@ unset RED unset GREEN unset RESET +# Completion +complete -c man +complete -cf sudo + # Color ls alias ls="lr -1FG" diff --git a/inputrc b/inputrc new file mode 100644 index 0000000..cc1601b --- /dev/null +++ b/inputrc @@ -0,0 +1,13 @@ +$include /etc/inputrc + +set show-all-if-ambiguous on + +set editing-mode vi +$if mode=vi +set keymap vi-command +"\e[A": history-search-backward +"\e[B": history-search-forward +set keymap vi-insert +"\e[A": history-search-backward +"\e[B": history-search-forward +$endif