cswimr/home
Archived
Template
1
0
Fork 0

use bat inside of pacsize

This commit is contained in:
Seaswimmer 2024-11-14 16:24:28 -05:00
parent 9023e7c6f5
commit c6dd88d509
Signed by: cswimr
GPG key ID: A9C162E867C851FA
3 changed files with 24 additions and 5 deletions

View file

@ -0,0 +1,15 @@
%YAML 1.2
---
name: Packages
file_extensions: [pkglist]
scope: source.packages
contexts:
main:
# Match package names (assuming they are words with letters, numbers, hyphens, and underscores)
- match: \b[a-z][a-z0-9\-_\.]+\b
scope: keyword
# Match file sizes with different units (KiB, MiB, GiB, TiB, etc.)
- match: \d+(\.\d+)?\s+(KiB|MiB|GiB|TiB)
scope: constant.numeric

3
.gitignore vendored
View file

@ -22,6 +22,9 @@
!.config/glow/
!.config/glow/**
!.config/bat/
!.config/bat/**
!.config/btop/
!.config/btop/**
.config/btop/**

View file

@ -19,11 +19,6 @@ alias vi="${EDITOR}"
alias vim="${EDITOR}"
alias nano="${EDITOR}"
if (( $+commands[pacman] )); 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 | less"
fi
if (( $+commands[yay] )); then
alias aur="yay"
alias yaystats="yay -P --stats"
@ -54,6 +49,11 @@ if (( $+commands[lazydocker] )); then
alias lad="lazydocker"
fi
if (( $+commands[pacman] )); 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"
fi
if (( $+commands[nvidia-smi] )); then
alias driver="nvidia-smi"
fi
@ -66,6 +66,7 @@ fi
if (( $+commands[tailscale] )); then
alias taildrop="tailscale file"
fi
alias protontricks="flatpak run com.github.Matoking.protontricks"
alias sober="flatpak run org.vinegarhq.Sober"
alias c="clear"