From 4a03cf20dd42601a4cf7546e14049fe36ce76983 Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Fri, 6 Jun 2014 21:43:37 +0200 Subject: [PATCH] back function bashrc --- bashrc | 5 +++++ inputrc | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bashrc b/bashrc index e65bc41..46c321b 100644 --- a/bashrc +++ b/bashrc @@ -173,6 +173,7 @@ function fuck { function cd #{{{ { + MY_LAST=`pwd` if [ $# -eq 0 ]; then builtin cd ~ && cons_set > /dev/null && ls else @@ -181,6 +182,10 @@ function cd #{{{ } #}}} +function back { + cd $MY_LAST +} + function pdfsearch #{{{ { for pdf in `find ./ -name "*.pdf"`; do diff --git a/inputrc b/inputrc index aca686b..dfa512d 100644 --- a/inputrc +++ b/inputrc @@ -1,4 +1,4 @@ #set editing-mode vi #set keymap vi -#set completion-ignore-case on -#set show-all-if-ambiguous on +set completion-ignore-case on +set show-all-if-ambiguous on