Add ls dircolors

This commit is contained in:
Martin Potier 2016-09-04 04:28:32 +02:00
parent 10c9819273
commit 1bf2538276
2 changed files with 12 additions and 0 deletions

8
configure vendored
View file

@ -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

View file

@ -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