if type -q gls
    function ls --description 'List contents of directory'
        command gls --color=auto $argv
    end
else if command ls --color=auto &>/dev/null
    function ls --description 'List contents of directory'
        command ls --color=auto $argv
    end
end
