From: Francois Fleuret Date: Thu, 8 Apr 2010 16:14:50 +0000 (+0200) Subject: Moves trash into its own shell script. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=d74463ca9cb697206336416788eaf50ed655cc31;p=scripts.git Moves trash into its own shell script. --- diff --git a/bashrc b/bashrc index 6ca8dcd..354ce54 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,13 +134,7 @@ function fn () { find $* -name "*${name}*"; } -# Move things to a trash directory in /tmp/ - -function trash () { - TRASH=$(date +/tmp/trash-%Y-%b-%d-%H_%M_%S) - mkdir ${TRASH} && mv $* ${TRASH} - \ls -ad ${TRASH}/* -} +alias trash=trash.sh ###################################################################### # http://www.reddit.com/r/linux/comments/akt3j/a_functional_programming_style_map_function_for/