Compare commits
2 commits
c6dd88d509
...
021e859168
Author | SHA1 | Date | |
---|---|---|---|
021e859168 | |||
89352b6108 |
2 changed files with 8 additions and 4 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
|
||||
|
|
|
@ -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,9 +50,9 @@ 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
|
||||
|
||||
if (( $+commands[nvidia-smi] )); then
|
||||
|
|
Reference in a new issue