From: Simon Ruderich Date: Sat, 14 Nov 2009 14:02:37 +0000 (+0100) Subject: Merge commit 'rammstein/master' X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=2d26211d5fb823d045b0839325336d8dc7a946bf;hp=8fe842d4a9383df7567119da5687022c9572480e;p=config%2Fdotfiles.git Merge commit 'rammstein/master' --- diff --git a/zsh/rc b/zsh/rc index 4290923..f24adde 100644 --- a/zsh/rc +++ b/zsh/rc @@ -47,7 +47,9 @@ fi fpath=(~/.zsh/functions $fpath) # Autoload my functions (except completion functions and hidden files). Thanks # to caphuso from the Zsh example files for this idea. -autoload ${fpath[1]}/^_*(^/:t) +if [[ -d ~/.zsh/functions ]]; then + autoload ${fpath[1]}/^_*(^/:t) +fi # Simulate hooks using _functions arrays for Zsh versions older than 4.3.4. At # the moment only precmd() and preexec() are simulated. @@ -363,6 +365,7 @@ alias -g L='E | less' alias -g D='E | colordiff L' alias -g G='| grep' alias -g S='| sort' +alias -g U='| uniq' # Make going up directories simple. alias -g ...='../..'