summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-22 10:10:49 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-22 10:10:49 +0200
commit7f0769a8ce6bd0663d29902c712891b4b2015282 (patch)
treeb1baf99b2b8a0b5dbdc3084aacd4a7354a8bc1a1 /etc
parentd9998a2bc42b5756d29b8ffabaf84aac912e7779 (diff)
etc/completion: Use zsh magic instead of head/sed
Diffstat (limited to 'etc')
-rw-r--r--etc/completion7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/completion b/etc/completion
index 6ccf8fa..a0c8dd5 100644
--- a/etc/completion
+++ b/etc/completion
@@ -1,12 +1,15 @@
## vim:ft=zsh
+zstyle :compinstall filename "$HOME/.zshrc"
+
# Add own completions
fpath=($ZDIR/completions $fpath)
-zstyle :compinstall filename "$HOME/.zshrc"
-ls-colors: 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 ${(s.:.)LS_COLORS}
+
# Mark the current selection when tabbing through possible completions
zstyle ':completion:*' menu select=1
+
# Also complete uppercase names with lowercase
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' ''