function ll --wraps ls --description "List contents of directory using long format"
    ls -lh --group-directories-first $argv
end

# detect if flag supported
if ls --group-directories-first &> /dev/null
  function ll --wraps ls --description "List contents of directory using long format"
    ls -lh --group-directories-first $argv
  end
end

Use --group-directories-first only if available
Use --group-directories-first only if available

jpalardy/dotfiles,jpalardy/dotfiles,jpalardy/dotfiles,jpalardy/dotfiles,jpalardy/dotfiles