summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-07 01:01:32 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-07 01:01:32 +0200
commit926ab212f8016ba6b336cc8a58bef82495434c7f (patch)
tree148d9efadb9b7cbc49baceca07ab4b74d0afb21a
parentefae82e2d3639518090fe6dc61571d3a27d1c912 (diff)
added 'ls-colors:'
-rw-r--r--etc/completion2
-rw-r--r--etc/rc4
2 files changed, 4 insertions, 2 deletions
diff --git a/etc/completion b/etc/completion
index ce57c85..f46a6d5 100644
--- a/etc/completion
+++ b/etc/completion
@@ -1,7 +1,7 @@
## vim:ft=zsh
zstyle :compinstall filename "$HOME/.zshrc"
-linux: zstyle ':completion:*' list-colors $(dircolors $HOME/packages/zsh/etc/dircolors | head -n 1 | sed -r 's/LS_COLORS=|;$//g')
+ls-colors: zstyle ':completion:*' list-colors $(dircolors $HOME/packages/zsh/etc/dircolors | head -n 1 | sed -r 's/LS_COLORS=|;$//g')
# Mark the current selection when tabbing through possible completions
zstyle ':completion:*' menu select=1
# Also complete uppercase names with lowercase
diff --git a/etc/rc b/etc/rc
index 82300a0..337fa80 100644
--- a/etc/rc
+++ b/etc/rc
@@ -4,6 +4,7 @@
ZDIR=$HOME/packages/zsh/etc
uname=$(uname)
alias 'linux:'='[ $uname = Linux ] &&'
+alias 'ls-colors:'='which dircolors &> /dev/null &&'
alias 'openbsd:'='[ $uname = OpenBSD ] &&'
## include the actual config
@@ -23,12 +24,13 @@ source $ZDIR/completion
## misc
bindkey -e # EMACS bindings
-linux: eval $(dircolors -b $HOME/packages/zsh/etc/dircolors)
+ls-colors: eval $(dircolors -b $HOME/packages/zsh/etc/dircolors)
trap 'echo zsh: Program terminated with exit status $?' ZERR
mesg n
umask 077
## cleanup
unalias 'linux:'
+unalias 'ls-colors:'
unalias 'openbsd:'
unset uname