use bat
inside of pacsize
This commit is contained in:
parent
9023e7c6f5
commit
c6dd88d509
3 changed files with 24 additions and 5 deletions
15
.config/bat/syntaxes/packages.sublime-syntax
Normal file
15
.config/bat/syntaxes/packages.sublime-syntax
Normal 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
3
.gitignore
vendored
|
@ -22,6 +22,9 @@
|
||||||
!.config/glow/
|
!.config/glow/
|
||||||
!.config/glow/**
|
!.config/glow/**
|
||||||
|
|
||||||
|
!.config/bat/
|
||||||
|
!.config/bat/**
|
||||||
|
|
||||||
!.config/btop/
|
!.config/btop/
|
||||||
!.config/btop/**
|
!.config/btop/**
|
||||||
.config/btop/**
|
.config/btop/**
|
||||||
|
|
|
@ -19,11 +19,6 @@ alias vi="${EDITOR}"
|
||||||
alias vim="${EDITOR}"
|
alias vim="${EDITOR}"
|
||||||
alias nano="${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
|
if (( $+commands[yay] )); then
|
||||||
alias aur="yay"
|
alias aur="yay"
|
||||||
alias yaystats="yay -P --stats"
|
alias yaystats="yay -P --stats"
|
||||||
|
@ -54,6 +49,11 @@ if (( $+commands[lazydocker] )); then
|
||||||
alias lad="lazydocker"
|
alias lad="lazydocker"
|
||||||
fi
|
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
|
if (( $+commands[nvidia-smi] )); then
|
||||||
alias driver="nvidia-smi"
|
alias driver="nvidia-smi"
|
||||||
fi
|
fi
|
||||||
|
@ -66,6 +66,7 @@ fi
|
||||||
if (( $+commands[tailscale] )); then
|
if (( $+commands[tailscale] )); then
|
||||||
alias taildrop="tailscale file"
|
alias taildrop="tailscale file"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias protontricks="flatpak run com.github.Matoking.protontricks"
|
alias protontricks="flatpak run com.github.Matoking.protontricks"
|
||||||
alias sober="flatpak run org.vinegarhq.Sober"
|
alias sober="flatpak run org.vinegarhq.Sober"
|
||||||
alias c="clear"
|
alias c="clear"
|
||||||
|
|
Reference in a new issue