cswimr/home
Archived
Template
1
0
Fork 0

Compare commits

..

No commits in common. "021e859168ea2dd5e68a7d08fa0b1b3be48ec291" and "c6dd88d5098e7ee13db9220e2225e578c1ff1423" have entirely different histories.

2 changed files with 4 additions and 8 deletions

View file

@ -5,9 +5,6 @@ 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

View file

@ -30,9 +30,8 @@ if (( $+commands[bat] )); then
fi
if (( $+commands[eza] )); then
local eza_args="--time-style='+%Y-%m-%d %H:%M' --icons"
alias ls="eza ${eza_args}"
alias l="eza -lgh ${eza_args}"
alias ls="eza --icons"
alias l="eza -lgh --icons"
fi
if (( $+commands[cpg] )); then
@ -50,9 +49,9 @@ if (( $+commands[lazydocker] )); then
alias lad="lazydocker"
fi
if (( $+commands[yay] )); then
if (( $+commands[pacman] )); then
# this lists packages installed with pacman by size in mebibytes
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"
alias pacsize="pacman -Qi | egrep '^(Name|Installed)' | cut -f2 -d':' | paste - - | column -t | sort -nrk 2 | grep MiB | cat --language=packages --style numbers,grid"
fi
if (( $+commands[nvidia-smi] )); then