[fish] alias ls=exa, if exa is installed

This commit is contained in:
Marcel Kapfer 2020-03-12 07:49:01 +01:00
parent ca02fbc714
commit 0f6e817791
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -35,3 +35,11 @@ if status --is-interactive
alias vim="nvim"
alias e="es"
end
function ls --wraps exa --description "alias ls=exa --git, if installed"
if type -q exa
exa --git $argv
else
ls $argv
end
end