cswimr/home
Archived
Template
1
0
Fork 0

add --time-style to eza args

This commit is contained in:
Seaswimmer 2024-11-15 08:51:44 -05:00
parent 89352b6108
commit 021e859168
Signed by: cswimr
GPG key ID: A9C162E867C851FA

View file

@ -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