1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-23 00:17:59 +00:00

[#125] Use is-callable to check for GNU utilities

This commit is contained in:
Sorin Ionescu 2012-04-10 23:18:26 -04:00
parent a63b053e58
commit 6512996133

View File

@ -11,7 +11,7 @@ omodload 'spectrum'
setopt CORRECT # Correct commands. setopt CORRECT # Correct commands.
# The 'ls' Family # The 'ls' Family
if (( $+commands[dircolors] )); then if is-callable 'dircolors'; then
# GNU core utilities. # GNU core utilities.
alias ls='ls --group-directories-first' alias ls='ls --group-directories-first'