diff options
-rw-r--r-- | 50_Aliases.zsh | 7 | ||||
-rw-r--r-- | 70_Trash.zsh | 8 | ||||
-rw-r--r-- | user:hugues/KeyBindings.zsh | 2 |
3 files changed, 10 insertions, 7 deletions
diff --git a/50_Aliases.zsh b/50_Aliases.zsh index c35f711..b8c39fb 100644 --- a/50_Aliases.zsh +++ b/50_Aliases.zsh @@ -7,7 +7,8 @@ ## You are encouraged to use, modify, and redistribute ## these files with or without this notice. ## -alias a='alias' +alias a=alias +a una=unalias a -g ¬ISO='LC_ALL=fr_FR' a -g ¬UTF='LC_ALL=fr_FR.UTF-8' @@ -20,8 +21,6 @@ a -g .......=../../../../../.. a -g ........=../../../../../../.. a -g .........=../../../../../../../.. -a una=unalias - cmd_exists emacsclient && a e='emacsclient' cmd_exists emacs && a ne='emacs -nw' @@ -29,6 +28,8 @@ cmd_exists vim && a v='vim' cmd_exists eject && a close='eject -t' +a goto='cd -P' ## Resolve symlinks + a rm='rm -i' a mv='mv -i' a cp && una cp ## Dé-assigne les alias de ``cp'' diff --git a/70_Trash.zsh b/70_Trash.zsh index 04aef8a..946c9cb 100644 --- a/70_Trash.zsh +++ b/70_Trash.zsh @@ -32,8 +32,7 @@ list_deleted_elements () if [ -d $FOLDER ] then - for element in $(find $FOLDER -maxdepth 1 ! -wholename "$FOLDER" ) - ls -lad $element | sed "s:$FOLDER/::" + ls -lad $(find $FOLDER -maxdepth 1 ! -wholename $FOLDER) | sed "s:$FOLDER/::" else echo "Nothing found in trash." fi @@ -59,4 +58,7 @@ undelete_from_trash () alias delete='move_to_trash' alias undelete='undelete_from_trash' -alias deleted='list_deleted_elements' +alias lsdeleted='list_deleted_elements' + +alias cdtrash='cd $TRASH/$PWD' +alias sotrash='cd ${PWD/$TRASH/}' diff --git a/user:hugues/KeyBindings.zsh b/user:hugues/KeyBindings.zsh index d47fb62..16382cd 100644 --- a/user:hugues/KeyBindings.zsh +++ b/user:hugues/KeyBindings.zsh @@ -205,7 +205,7 @@ bindkey "\M-^@"-"\M-" self-insert # Raccourcis pour les todo : funny :) bindkey -s "t" " todo\n" -bindkey -s "T" " todo all -c\n" +#bindkey -s "T" " todo all -c\n" bindkey -s "é" " 2>/dev/null " bindkey -s "2" " 2>&1 " |