Index: fish/functions/ls.fish ================================================================== --- fish/functions/ls.fish +++ fish/functions/ls.fish @@ -1,7 +1,9 @@ -function ls --description 'List contents of directory' - if type -q gls +if type -q gls + function ls --description 'List contents of directory' command gls --color=auto $argv - else + end +else if command ls --color=auto &>/dev/null + function ls --description 'List contents of directory' command ls --color=auto $argv end end