Skip to content

Commit

Permalink
dircolorsが無い環境でも補完に色をつける
Browse files Browse the repository at this point in the history
  • Loading branch information
kyanagi committed Jan 26, 2012
1 parent d2d6fa8 commit 72f9b1d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions zshrc
Expand Up @@ -180,8 +180,12 @@ autoload -U compinit
compinit -u

## 補完リストに色をつける
eval `dircolors -b` # LS_COLORSの設定
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
if type dircolors > /dev/null; then
eval `dircolors -b` # LS_COLORSの設定
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
else
zstyle ':completion:*:default' list-colors 'di=34' 'ln=35' 'so=32' 'ex=31' 'bd=46;34' 'cd=43;34'
fi
zstyle ':completion:*:*:kill:*:processes' list-colors "=(#b)[^0-9]#([0-9]#)*[0-9:.]## ([^ ]#)*=$color[none]=$color[bold];$color[cyan]=$color[green]"

## 補完リストを全てグループ分けして表示
Expand Down

0 comments on commit 72f9b1d

Please sign in to comment.