summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2011-03-08 11:05:06 +0100
committerTobias Klauser <tklauser@distanz.ch>2011-03-08 11:05:06 +0100
commitbd6859c79e73053e0ff6efb6a2ce4f2e7904866a (patch)
tree3ccc9be7677a23220ca8c257d23f931faad82c56
parent8518370e6c116c6f914961e3f52050ca3035ab44 (diff)
move dircolors setup
-rw-r--r--.zsh/zshrc/00_colours5
-rw-r--r--.zsh/zshrc/30_aliases1
2 files changed, 5 insertions, 1 deletions
diff --git a/.zsh/zshrc/00_colours b/.zsh/zshrc/00_colours
index fe2f25b..3091075 100644
--- a/.zsh/zshrc/00_colours
+++ b/.zsh/zshrc/00_colours
@@ -25,4 +25,9 @@ else
NO_COLOUR=$'%{\e[0m%}'
fi
+# colour setup for ls
+eval $(dircolors -b)
+# colour setup for ls on OS X:
+is_darwin && export CLICOLOR=1
+
# vim:ft=zsh
diff --git a/.zsh/zshrc/30_aliases b/.zsh/zshrc/30_aliases
index f477b50..21847bc 100644
--- a/.zsh/zshrc/30_aliases
+++ b/.zsh/zshrc/30_aliases
@@ -23,7 +23,6 @@ alias u='umount'
# enable color support of ls
if [ "${TERM}" != "dumb" ]; then
- eval `dircolors -b`
alias ls='ls --color=auto'
fi