From 13517a908c6d00644d458ccf28cdff07c69bade8 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Wed, 19 Jan 2011 17:28:33 +0100 Subject: [PATCH] Added the alias .. and -, changed the LOCAL_HISTORY_HINT. --- bashrc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/bashrc b/bashrc index 6dc9780..5c97af0 100644 --- 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 -- 2.39.5