X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=bashrc;h=2539fdbe479d03fddb7b91f32e25a3f3e9fb24a8;hb=5a0f6aadad25b4fc660b2d9d67aeb02a240e98db;hp=6ca8dcd226f642ad3fa7d1edfb0d01bd9a20d55d;hpb=de6bde6c9f9529c1537904ce339b057783e421f7;p=scripts.git diff --git a/bashrc b/bashrc index 6ca8dcd..2539fdb 100644 --- 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