stty -ixon
+alias ..='cd ..'
+alias -- -='cd -'
alias rm='rm -i'
alias mv='mv -i'
# alias chmod='chmod -v'
# 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
# alias finddup='finddup -p0d'
alias finddup='finddup -p'
-######################################################################
-# This script grep messages in my mail archives
-
-alias gma='gma.sh'
-
######################################################################
# Selector based history
#
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