diff --git a/.zshc/aliases.zsh b/.zshc/aliases.zsh index 8ce63d4..e60a6b0 100755 --- a/.zshc/aliases.zsh +++ b/.zshc/aliases.zsh @@ -30,8 +30,9 @@ if (( $+commands[bat] )); then fi if (( $+commands[eza] )); then - alias ls="eza --icons" - alias l="eza -lgh --icons" + local eza_args="--time-style='+%Y-%m-%d %H:%M' --icons" + alias ls="eza ${eza_args}" + alias l="eza -lgh ${eza_args}" fi if (( $+commands[cpg] )); then @@ -49,10 +50,8 @@ if (( $+commands[lazydocker] )); then alias lad="lazydocker" fi -if (( $+commands[pacman] )); then if (( $+commands[yay] )); then # this lists packages installed with pacman by size in mebibytes - alias pacsize="pacman -Qi | egrep '^(Name|Installed)' | cut -f2 -d':' | paste - - | column -t | sort -nrk 2 | grep MiB | cat --language=packages --style numbers,grid" alias pacsize="yay -Qi | egrep '^(Name|Version|Installed)' | cut -f2 -d':' | paste - - - | column -t | sort -nrk 3 | grep MiB | bat --language=packages --style numbers,grid" fi