Condition for LS_COLORS updated.
This commit is contained in:
parent
fa87bdcfc9
commit
a079e571a7
|
@ -38,5 +38,8 @@ case $TERM in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
[[ -f $HOME/.dircolors ]] && eval $(dircolors -b $HOME/.dircolors)
|
if [[ "linux" == "$TERM" && -f $HOME/.dircolors ]]; then
|
||||||
[[ -n "$DISPLAY" ]] && [[ -f $HOME/.dircolors_256 ]] && eval $(dircolors -b $HOME/.dircolors_256)
|
eval $(dircolors -b $HOME/.dircolors)
|
||||||
|
elif [[ "linux" != "$TERM" && -f $HOME/.dircolors_256 ]]; then
|
||||||
|
eval $(dircolors -b $HOME/.dircolors_256)
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue