11 lines
243 B
Fish
11 lines
243 B
Fish
function ls
|
|
if type -q eza
|
|
command eza $argv
|
|
else
|
|
if test "$(uname -s | tr '[:upper:]' '[:lower:]')" = 'linux'
|
|
command ls --color=auto $argv
|
|
else
|
|
command ls $argv
|
|
end
|
|
end
|
|
end
|