cswimr/home
Archived
Template
1
0
Fork 0

Compare commits

..

2 commits

Author SHA1 Message Date
021e859168
add --time-style to eza args 2024-11-15 08:51:44 -05:00
89352b6108
use yay in pacsize and add version numbers to pacsize 2024-11-15 08:51:25 -05:00
2 changed files with 8 additions and 4 deletions

View file

@ -5,6 +5,9 @@ file_extensions: [pkglist]
scope: source.packages scope: source.packages
contexts: contexts:
main: main:
- match: \N[0-9a-zA-Z.\-_\+]+\-\d+|\b(?<!\.)\d(?!\.)\b
scope: version
# Match package names (assuming they are words with letters, numbers, hyphens, and underscores) # Match package names (assuming they are words with letters, numbers, hyphens, and underscores)
- match: \b[a-z][a-z0-9\-_\.]+\b - match: \b[a-z][a-z0-9\-_\.]+\b
scope: keyword scope: keyword

View file

@ -30,8 +30,9 @@ if (( $+commands[bat] )); then
fi fi
if (( $+commands[eza] )); then if (( $+commands[eza] )); then
alias ls="eza --icons" local eza_args="--time-style='+%Y-%m-%d %H:%M' --icons"
alias l="eza -lgh --icons" alias ls="eza ${eza_args}"
alias l="eza -lgh ${eza_args}"
fi fi
if (( $+commands[cpg] )); then if (( $+commands[cpg] )); then
@ -49,9 +50,9 @@ if (( $+commands[lazydocker] )); then
alias lad="lazydocker" alias lad="lazydocker"
fi fi
if (( $+commands[pacman] )); then if (( $+commands[yay] )); then
# this lists packages installed with pacman by size in mebibytes # 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 fi
if (( $+commands[nvidia-smi] )); then if (( $+commands[nvidia-smi] )); then