]> git.madduck.net Git - etc/zsh.git/blobdiff - .zsh/zshrc/89_dircolors

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

provide hook functions to iterate _functions arrays
[etc/zsh.git] / .zsh / zshrc / 89_dircolors
index 8f561f83673a852d28c11389ad0178d3692e72f3..d08487512847d77f9fda2f58e400b9288dec37c1 100644 (file)
@@ -12,14 +12,13 @@ eval $(dircolors $ZDOTDIR/dircolors) 2>/dev/null || :
 
 if [ -n "$LS_COLORS" ]; then
   # uniquify LS_COLORS due to #479544
+
   typeset -A pairs
-  IFS_old="$IFS"
-  IFS=:
-  for pair in ${=LS_COLORS}; do
+  for pair in ${(s.:.)LS_COLORS}; do
     [ -z "${pair%%\=*}" ] && continue
     pairs["${pair%%\=*}"]="${pair#*=}"
   done
-  IFS="$IFS_old"
+
   typeset -a items
   for key in ${(k)pairs}; do
     [ "$pairs[$key]" = 00 ] && continue #removes styles handled by normal