Added the alias .. and -, changed the LOCAL_HISTORY_HINT.
authorFrancois Fleuret <francois@fleuret.org>
Wed, 19 Jan 2011 16:28:33 +0000 (17:28 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Wed, 19 Jan 2011 16:28:33 +0000 (17:28 +0100)
bashrc

diff --git a/bashrc b/bashrc
index 6dc9780..5c97af0 100644 (file)
--- a/bashrc
+++ b/bashrc
@@ -92,6 +92,8 @@ export LESS_TERMCAP_me=${VT_RESET}
 
 stty -ixon
 
+alias ..='cd ..'
+alias -- -='cd -'
 alias rm='rm -i'
 alias mv='mv -i'
 # alias chmod='chmod -v'
@@ -722,7 +724,7 @@ function keep_local_history () {
         # mv would replace a symbolic link, while cp keeps it
         \cp ${TMP} ${LOCAL_HISTORY_FILE}
         \rm ${TMP}
-        LOCAL_HISTORY_HINT=" LH "
+        LOCAL_HISTORY_HINT="* "
     else
         LOCAL_HISTORY_HINT=""
     fi
@@ -758,11 +760,6 @@ alias dus='dus -f -i'
 # alias finddup='finddup -p0d'
 alias finddup='finddup -p'
 
-######################################################################
-# This script grep messages in my mail archives
-
-alias gma='gma.sh'
-
 ######################################################################
 # Selector based history
 #
@@ -782,7 +779,7 @@ function selector-cd () {
     if [[ "$1" == "+" ]]; then
         PATH_TEMP=$(mktemp /tmp/selector-cd-path.XXXXXX)
         selector -d -i -o ${PATH_TEMP} ${CD_HISTORY}
-        cd $(cat ${PATH_TEMP} | sed -e "s|~|${HOME}|")
+        cd "$(cat ${PATH_TEMP} | sed -e 's|~|'${HOME}'|')"
         \rm ${PATH_TEMP}
     else
         if [[ -z "$1" ]]; then