summaryrefslogtreecommitdiff
path: root/user:hugues
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2012-01-24 17:18:40 +0100
committerHugues Hiegel <hugues.hiegel@qosmos.com>2012-01-24 17:18:40 +0100
commitf8dfa7bf4d674d6b5a2b5c02ef484ac1d228a0e0 (patch)
tree6c8fb86b52be2b835e8865ac5b6eb985699a7729 /user:hugues
parent6eb31533615e06e7701c075398cafa13658c52fe (diff)
-- HUGE CLEANUP -- Phase #1
Diffstat (limited to 'user:hugues')
-rw-r--r--user:hugues/Aliases.zsh26
-rw-r--r--user:hugues/Environment.zsh2
-rw-r--r--user:hugues/KeyBindings.zsh4
3 files changed, 16 insertions, 16 deletions
diff --git a/user:hugues/Aliases.zsh b/user:hugues/Aliases.zsh
index a988add..dffb0a7 100644
--- a/user:hugues/Aliases.zsh
+++ b/user:hugues/Aliases.zsh
@@ -18,23 +18,23 @@ a -g .......=../../../../../..
a -g ........=../../../../../../..
a -g .........=../../../../../../../..
-cmd_exists emacsclient && a e='emacsclient'
-cmd_exists emacs && a ne='emacs -nw'
+__cmd_exists emacsclient && a e='emacsclient'
+__cmd_exists emacs && a ne='emacs -nw'
-if ( cmd_exists vim )
+if ( __cmd_exists vim )
then
a v='vim'
if ( vim --version | grep -- "+clientserver" >/dev/null )
then
- if ( cmd_exists vims )
+ if ( __cmd_exists vims )
then
a vim='vim --servername `print -P "%l"`'
fi
fi
fi
-cmd_exists eject && a close='eject -t'
+__cmd_exists eject && a close='eject -t'
a goto='cd -P' ## Resolve symlinks
@@ -44,9 +44,9 @@ a cp && una cp ## Dé-assigne les alias de ``cp''
autoload zmv
a mmv='noglob zmv -W'
-normal_user && cmd_exists apt-get && a apt-get='sudo apt-get'
-normal_user && cmd_exists pacman && a pacman='sudo pacman'
-normal_user && cmd_exists yum && a yum='sudo yum'
+__normal_user && __cmd_exists apt-get && a apt-get='sudo apt-get'
+__normal_user && __cmd_exists pacman && a pacman='sudo pacman'
+__normal_user && __cmd_exists yum && a yum='sudo yum'
a _rt='find -maxdepth 1 -type f \( -name "*~" -o -name ".*~" -o -name "#*#" -o -name ".*.swp" \) -exec rm -vf \{\} \;'
a _RT='find -type f \( -name "*~" -o -name ".*~" -o -name "#*#" -o -name ".*.swp" \) -exec rm -vf \{\} \;'
@@ -70,17 +70,17 @@ a lat='la -tr'
a lc='ls -c'
a lc1='\ls -c1'
-cmd_exists dict && a definition='dict -h dict.org'
-cmd_exists dict && a traduction='dict -h hiegel.fr -P-'
+__cmd_exists dict && a definition='dict -h dict.org'
+__cmd_exists dict && a traduction='dict -h hiegel.fr -P-'
-cmd_exists dosbox && a dosbox='dosbox -c "mount c \"`pwd`\"" -c "mount d /cdrom -t cdrom" -c "c:" '
-cmd_exists emacs && a gnus='emacs -f gnus'
+__cmd_exists dosbox && a dosbox='dosbox -c "mount c \"`pwd`\"" -c "mount d /cdrom -t cdrom" -c "c:" '
+__cmd_exists emacs && a gnus='emacs -f gnus'
#a make='make -j'
## Suffixes Aliases
# I don't like this, I never used it.
#
-cmd_exists editdiff && a -s patch=editdiff
+__cmd_exists editdiff && a -s patch=editdiff
a -s c=$EDITOR
a -s h=$EDITOR
diff --git a/user:hugues/Environment.zsh b/user:hugues/Environment.zsh
index bfb341d..486e135 100644
--- a/user:hugues/Environment.zsh
+++ b/user:hugues/Environment.zsh
@@ -49,7 +49,7 @@ done
export GREP_COLOR=$color[yellow]\;$color[bold]
export GREP_COLORS="sl="":cx="$color[cyan]":ms="$color[yellow]";"$color[bold]":mc="$color[red]";"$color[bold]""
-cmd_exists dircolors && eval $(dircolors ~/.dir_colors)
+__cmd_exists dircolors && eval $(dircolors ~/.dir_colors)
export TZ="Europe/Paris"
export TIME_STYLE="+%Y-%b-%d %H:%M:%S"
diff --git a/user:hugues/KeyBindings.zsh b/user:hugues/KeyBindings.zsh
index ff23dac..43e75d0 100644
--- a/user:hugues/KeyBindings.zsh
+++ b/user:hugues/KeyBindings.zsh
@@ -201,10 +201,10 @@ do
bindkey -M $keymap -s 'r' 'Q rehash\n'
bindkey -M $keymap -s 'R' 'Q reset\n'
- cmd_exists when && \
+ __cmd_exists when && \
bindkey -M $keymap -s 'w' 'Q when\n'
- cmd_exists todo && (
+ __cmd_exists todo && (
bindkey -M $keymap -s 't' 'Q todo\n'
bindkey -M $keymap -s 'T' 'Q todo all -c\n'
)