1
0
Fork 0

substitute command name when alias is not defined

for ls and grep in the utility module.
pull/878/head
Zhiming Wang 10 years ago
parent 08676a273e
commit 504ec1b8c9

@ -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…
Cancel
Save