diff --git a/configure b/configure index a064dd5..dda1942 100755 --- a/configure +++ b/configure @@ -62,6 +62,14 @@ case $1 in stow -v zsh echo "You can add your local config in ~/.zsh-local-$HOST" ;; + "dircolors" ) + echo "Installing dircolors config" + git clone https://github.com/huyz/dircolors-solarized ~/.dircolors + ln -s ~/.dircolors/dircolors.ansi-dark ~/.dir_colors + echo "Default dircolors theme is dark ansi" + echo "Please check that your terminal emulator is listed at the begining" + echo "of the file like so: TERM xterm-termite (for termite)" + ;; * ) echo "$1 cannot be installed…" exit 1 diff --git a/zsh/.zshrc b/zsh/.zshrc index d09d420..41e6524 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -31,3 +31,7 @@ if [ -f "$HOME/.zsh-local-$HOST" ]; then source $HOME/.zsh-local-$HOST fi +# Colors files (if file exists +if [ -f "$HOME/.dir_colors" ]; then + eval `dircolors ~/.dir_colors` +fi