mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Simplified option variables for greater flexibility.
This commit is contained in:
parent
8619dd28bc
commit
05c94e2dd5
10 changed files with 25 additions and 25 deletions
|
|
@ -2,7 +2,7 @@ setopt correct # Correct commands.
|
|||
setopt correct_all # Correct all arguments.
|
||||
|
||||
# The 'ls' Family
|
||||
if ! check-bool "$DISABLE_COLOR"; then
|
||||
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")
|
||||
alias ls='ls -hF --group-directories-first --color=auto'
|
||||
|
|
@ -80,7 +80,7 @@ else
|
|||
fi
|
||||
|
||||
# Diff/Make
|
||||
if ! check-bool "$DISABLE_COLOR"; then
|
||||
if check-bool "$COLOR"; then
|
||||
if (( $+commands[colordiff] )); then
|
||||
alias diff='colordiff -u'
|
||||
compdef colordiff=diff
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue