alias rm='rm -i'
alias mv='mv -i'
-alias chmod='chmod -v'
+# alias chmod='chmod -v'
+alias chmod='chmod -c'
alias cp='cp -i'
alias rd=rmdir
alias md=mkdir
find $* -name "*${name}*";
}
-# Move things to a trash directory in /tmp/
+# Create a dir and cd there
-function trash () {
- TRASH=$(date +/tmp/trash-%Y-%b-%d-%H_%M_%S)
- mkdir ${TRASH} && mv $* ${TRASH}
- \ls -ad ${TRASH}/*
+function mcd () {
+ mkdir -p $1
+ cd $1
}
+alias trash=trash.sh
+
######################################################################
# http://www.reddit.com/r/linux/comments/akt3j/a_functional_programming_style_map_function_for/
#
# git clone http://fleuret.org/git/finddup/
-alias finddup='finddup -p0d'
+# alias finddup='finddup -p0d'
+alias finddup='finddup -p'
######################################################################
# This script grep messages in my mail archives
# git clone http://fleuret.org/git/selector/
function selector-history () {
- selector -c 7 4 0 3 -q -b -i -d -v -w -l 15000 <(history)
+ selector -c 7,4,0,3 -q -b -i -d -v -w -l 15000 <(history)
}
# M-r puts the selected history line in place of the current one