From 1bf253827646439c5384ee404f470bd358603309 Mon Sep 17 00:00:00 2001 From: Martin Potier Date: Sun, 4 Sep 2016 04:28:32 +0200 Subject: [PATCH] Add ls dircolors --- configure | 8 ++++++++ zsh/.zshrc | 4 ++++ 2 files changed, 12 insertions(+) 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