mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Use zstyle instead of variables for configuration.
This commit is contained in:
parent
60f39d8d91
commit
f0499b76c3
13 changed files with 156 additions and 103 deletions
|
|
@ -2,9 +2,9 @@ setopt CORRECT # Correct commands.
|
|||
setopt CORRECT_ALL # Correct all arguments.
|
||||
|
||||
# The 'ls' Family
|
||||
if check-bool "$COLOR"; then
|
||||
if [[ -f "$HOME/.dir_colors" ]] && ( (( $+commands[dircolors] )) || ( (( $+plugins[(er)gnu-utils] )) && (( $+commands[gdircolors] )) ) ); then
|
||||
eval $("${commands[dircolors]:-$commands[gdircolors]}" "$HOME/.dir_colors")
|
||||
if zstyle -t ':omz:alias:ls' color; then
|
||||
if [[ -f "$HOME/.dir_colors" ]] && (( $+commands[dircolors] )); then
|
||||
eval $(dircolors "$HOME/.dir_colors")
|
||||
alias ls='ls -hF --group-directories-first --color=auto'
|
||||
else
|
||||
export CLICOLOR=1
|
||||
|
|
@ -80,7 +80,7 @@ else
|
|||
fi
|
||||
|
||||
# Diff/Make
|
||||
if check-bool "$COLOR"; then
|
||||
if zstyle -t ':omz:alias:diff' color; then
|
||||
if (( $+commands[colordiff] )); then
|
||||
alias diff='colordiff -u'
|
||||
compdef colordiff=diff
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue