X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=scripts.git;a=blobdiff_plain;f=bashrc;h=2539fdbe479d03fddb7b91f32e25a3f3e9fb24a8;hp=354ce5491ae7a24c236c4165156e039a54816c79;hb=3f19799fa2d26a502cabe2b689bf5e9d2f80faf5;hpb=e3d361eca6d0d08898beaaf177e2bfc8c839980c diff --git a/bashrc b/bashrc index 354ce54..2539fdb 100644 --- a/bashrc +++ b/bashrc @@ -134,6 +134,13 @@ function fn () { find $* -name "*${name}*"; } +# Create a dir and cd there + +function mcd () { + mkdir -p $1 + cd $1 +} + alias trash=trash.sh ###################################################################### @@ -680,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 @@ -695,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