2017-07-06 02:26:56 +00:00
|
|
|
# ls colors
|
|
|
|
autoload -U colors && colors
|
|
|
|
|
2018-08-06 14:58:32 +00:00
|
|
|
# default LSCOLORS
|
2017-07-06 02:26:56 +00:00
|
|
|
export LSCOLORS="Gxfxcxdxbxegedabagacad"
|
|
|
|
|
2018-08-06 14:58:32 +00:00
|
|
|
if [[ -f $HOME/.dircolors ]]; then
|
|
|
|
eval $(dircolors -b $HOME/.dircolors)
|
|
|
|
elif [[ -z "$LS_COLORS" ]]; then
|
|
|
|
(( $+commands[dircolors] )) && eval "$(dircolors -b)"
|
2017-07-06 02:26:56 +00:00
|
|
|
fi
|
|
|
|
|
2018-08-06 14:58:32 +00:00
|
|
|
# Take advantage of $LS_COLORS for completion as well.
|
|
|
|
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
|
|
|
|
2017-07-06 02:26:56 +00:00
|
|
|
setopt auto_cd
|
|
|
|
setopt multios
|
|
|
|
setopt prompt_subst
|
|
|
|
|
|
|
|
[[ -n "$WINDOW" ]] && SCREEN_NO="%B$WINDOW%b " || SCREEN_NO=""
|