1
0
Fork 0

Substitute command when alias is undefined

pull/407/merge
Sorin Ionescu 10 years ago
parent 6a812ed36b
commit cd5067668c

@ -71,9 +71,9 @@ if is-callable 'dircolors'; then
eval "$(dircolors --sh)" eval "$(dircolors --sh)"
fi fi
alias ls="$aliases[ls] --color=auto" alias ls="${aliases[ls]:-ls} --color=auto"
else else
alias ls="$aliases[ls] -F" alias ls="${aliases[ls]:-ls} -F"
fi fi
else else
# BSD Core Utilities # BSD Core Utilities
@ -84,9 +84,9 @@ else
# Define colors for the completion system. # Define colors for the completion system.
export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=36;01:cd=33;01:su=31;40;07:sg=36;40;07:tw=32;40;07:ow=33;40;07:' export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=36;01:cd=33;01:su=31;40;07:sg=36;40;07:tw=32;40;07:ow=33;40;07:'
alias ls='ls -G' alias ls="${aliases[ls]:-ls} -G"
else else
alias ls='ls -F' alias ls="${aliases[ls]:-ls} -F"
fi fi
fi fi
@ -107,7 +107,7 @@ if zstyle -t ':prezto:module:utility:grep' color; then
export GREP_COLOR='37;45' # BSD. export GREP_COLOR='37;45' # BSD.
export GREP_COLORS="mt=$GREP_COLOR" # GNU. export GREP_COLORS="mt=$GREP_COLOR" # GNU.
alias grep="$aliases[grep] --color=auto" alias grep="${aliases[grep]:-grep} --color=auto"
fi fi
# Mac OS X Everywhere # Mac OS X Everywhere

Loading…
Cancel
Save