Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Simplest way to choose one of several commands



Is there a simpler way of doing the following?

alias ls=${${(f)"$(whence -p {g,}ls)"}[1]}' --color'

I need to select gls, if thatâs whatâs installed, otherwise ls.  (The
code above assumes that at least ls is installed, which isnât a
problem.)



Messages sorted by: Reverse Date, Date, Thread, Author