bash: ll als function
This commit is contained in:
parent
af61a3f7aa
commit
84a7b345ee
1 changed files with 8 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue