Condition for LS_COLORS updated.

This commit is contained in:
Kolan Sh 2013-03-18 17:20:17 +04:00
parent fa87bdcfc9
commit a079e571a7
1 changed files with 5 additions and 2 deletions

View File

@ -38,5 +38,8 @@ case $TERM in
;;
esac
[[ -f $HOME/.dircolors ]] && eval $(dircolors -b $HOME/.dircolors)
[[ -n "$DISPLAY" ]] && [[ -f $HOME/.dircolors_256 ]] && eval $(dircolors -b $HOME/.dircolors_256)
if [[ "linux" == "$TERM" && -f $HOME/.dircolors ]]; then
eval $(dircolors -b $HOME/.dircolors)
elif [[ "linux" != "$TERM" && -f $HOME/.dircolors_256 ]]; then
eval $(dircolors -b $HOME/.dircolors_256)
fi