From d74463ca9cb697206336416788eaf50ed655cc31 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Thu, 8 Apr 2010 18:14:50 +0200 Subject: [PATCH] Moves trash into its own shell script. --- bashrc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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/ -- 2.39.5