cswimr/home
Archived
Template
1
0
Fork 0

use yay in pacsize and add version numbers to pacsize

This commit is contained in:
Seaswimmer 2024-11-15 08:50:49 -05:00
parent c6dd88d509
commit 89352b6108
Signed by: cswimr
GPG key ID: A9C162E867C851FA
2 changed files with 5 additions and 0 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

@ -50,8 +50,10 @@ if (( $+commands[lazydocker] )); then
fi fi
if (( $+commands[pacman] )); then 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="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