use yay
in pacsize
and add version numbers to pacsize
This commit is contained in:
parent
c6dd88d509
commit
89352b6108
2 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,9 @@ file_extensions: [pkglist]
|
|||
scope: source.packages
|
||||
contexts:
|
||||
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: \b[a-z][a-z0-9\-_\.]+\b
|
||||
scope: keyword
|
||||
|
|
|
@ -50,8 +50,10 @@ if (( $+commands[lazydocker] )); then
|
|||
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
|
||||
|
||||
if (( $+commands[nvidia-smi] )); then
|
||||
|
|
Reference in a new issue