bash: ll als function

This commit is contained in:
Michael Grote 2022-01-05 07:47:41 +01:00
parent af61a3f7aa
commit 84a7b345ee

View file

@ -145,6 +145,14 @@ function gc {
git checkout $1 || git checkout -b $1 origin/$1 git checkout $1 || git checkout -b $1 origin/$1
esac esac
} }
function ll {
unalias ll
if command -v exa >/dev/null ; then
exa --long --git --all --ignore-glob='.git' --group-directories-first --sort=name --group
else
ls -lah
fi
}
### Aliase ### Aliase
@ -159,7 +167,6 @@ alias cls="clear"
alias df="df -h" alias df="df -h"
alias du="du -h" alias du="du -h"
alias grep="grep -i --color=auto" alias grep="grep -i --color=auto"
alias ll="exa --long --git --all --ignore-glob='.git' --group-directories-first --sort=name --group"
alias hostname="hostname -f" alias hostname="hostname -f"
alias untar="tar -xzf" alias untar="tar -xzf"
alias unmount="umount" alias unmount="umount"