From 84a7b345eef3175dff93ea65b215d81ebbed5e6e Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Wed, 5 Jan 2022 07:47:41 +0100 Subject: [PATCH] bash: ll als function --- .bash_extra | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.bash_extra b/.bash_extra index 07be076..4e59511 100644 --- a/.bash_extra +++ b/.bash_extra @@ -145,6 +145,14 @@ function gc { git checkout $1 || git checkout -b $1 origin/$1 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 @@ -159,7 +167,6 @@ alias cls="clear" alias df="df -h" alias du="du -h" 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 untar="tar -xzf" alias unmount="umount"