From 7531200de0cad747cbe741f5b1c30e4c6f808fb0 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Sun, 1 May 2016 14:48:54 +0200 Subject: [PATCH 1/3] Command Not Found description --- bashrc | 1 + 1 file changed, 1 insertion(+) diff --git a/bashrc b/bashrc index aff08e5..57e9f5e 100644 --- a/bashrc +++ b/bashrc @@ -99,6 +99,7 @@ fi alias fuck='eval $(thefuck $(fc -ln -1))' alias FUCK='fuck' +# Command not found [ -r /etc/profile.d/cnf.sh ] && . /etc/profile.d/cnf.sh # Functions From 750925c25329278101d6122ced09970c99043922 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Sun, 1 May 2016 14:52:57 +0200 Subject: [PATCH 2/3] Clear screen after logout --- bash_logout | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 bash_logout diff --git a/bash_logout b/bash_logout new file mode 100644 index 0000000..9bccd62 --- /dev/null +++ b/bash_logout @@ -0,0 +1,2 @@ +clear +reset From b6921a26fad18988fcbe5d5a3cfcd75e4a22075b Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Sun, 1 May 2016 15:02:53 +0200 Subject: [PATCH 3/3] inputrc --- bashrc | 2 -- inputrc | 13 +++++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 inputrc diff --git a/bashrc b/bashrc index aff08e5..7dd2126 100644 --- a/bashrc +++ b/bashrc @@ -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 diff --git a/inputrc b/inputrc new file mode 100644 index 0000000..e302a8d --- /dev/null +++ b/inputrc @@ -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 +