substitute command name when alias is not defined
for ls and grep in the utility module.
This commit is contained in:
parent
08676a273e
commit
504ec1b8c9
1 changed files with 3 additions and 3 deletions
|
@ -71,9 +71,9 @@ if is-callable 'dircolors'; then
|
|||
eval "$(dircolors --sh)"
|
||||
fi
|
||||
|
||||
alias ls="$aliases[ls] --color=auto"
|
||||
alias ls="${aliases[ls]:-ls} --color=auto"
|
||||
else
|
||||
alias ls="$aliases[ls] -F"
|
||||
alias ls="${aliases[ls]:-ls} -F"
|
||||
fi
|
||||
else
|
||||
# BSD Core Utilities
|
||||
|
@ -107,7 +107,7 @@ if zstyle -t ':prezto:module:utility:grep' color; then
|
|||
export GREP_COLOR='37;45' # BSD.
|
||||
export GREP_COLORS="mt=$GREP_COLOR" # GNU.
|
||||
|
||||
alias grep="$aliases[grep] --color=auto"
|
||||
alias grep="${aliases[grep]:-grep} --color=auto"
|
||||
fi
|
||||
|
||||
# Mac OS X Everywhere
|
||||
|
|
Loading…
Add table
Reference in a new issue