[fish] alias ls=exa, if exa is installed
This commit is contained in:
parent
ca02fbc714
commit
0f6e817791
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue