projects
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ba9f889
)
Added the alias .. and -, changed the LOCAL_HISTORY_HINT.
author
Francois Fleuret
<francois@fleuret.org>
Wed, 19 Jan 2011 16:28:33 +0000
(17:28 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Wed, 19 Jan 2011 16:28:33 +0000
(17:28 +0100)
bashrc
patch
|
blob
|
history
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
stty -ixon
+alias ..='cd ..'
+alias -- -='cd -'
alias rm='rm -i'
alias mv='mv -i'
# alias chmod='chmod -v'
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}
# 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
else
LOCAL_HISTORY_HINT=""
fi
@@
-758,11
+760,6
@@
alias dus='dus -f -i'
# alias finddup='finddup -p0d'
alias finddup='finddup -p'
# alias finddup='finddup -p0d'
alias finddup='finddup -p'
-######################################################################
-# This script grep messages in my mail archives
-
-alias gma='gma.sh'
-
######################################################################
# Selector based history
#
######################################################################
# 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}
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
\rm ${PATH_TEMP}
else
if [[ -z "$1" ]]; then