*** empty log message ***
[scripts.git] / bashrc
diff --git a/bashrc b/bashrc
index 6ca8dcd..2539fdb 100644 (file)
--- a/bashrc
+++ b/bashrc
@@ -85,7 +85,8 @@ stty -ixon
 
 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
@@ -133,14 +134,15 @@ function fn () {
     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/
 
@@ -685,7 +687,8 @@ alias dus='dus -f'
 #
 # 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
@@ -700,7 +703,7 @@ alias gma='gma.sh'
 # 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