Browse Source

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

master
Sorin Ionescu 13 years ago
parent
commit
6512996133
  1. 2
      modules/alias/init.zsh

2
modules/alias/init.zsh

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

Loading…
Cancel
Save