added new alias: get size of pacman package
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Version 2
|
||||||
|
# Last change: Sun 2026-06-14
|
||||||
|
# Git repo: https://git.fennek.xyz/fennek182/dotfiles
|
||||||
|
# Latest version: https://git.fennek.xyz/fennek182/dotfiles/src/branch/main/.config/shell/aliasrc
|
||||||
|
# Description: My personal aliases for my shell (I'm using zsh)
|
||||||
|
|
||||||
# Use neovim for vim if present.
|
# Use neovim for vim if present.
|
||||||
[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d"
|
[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d"
|
||||||
|
|
||||||
@@ -162,6 +168,7 @@ alias unlock="sudo rm /var/lib/pacman/db.lck" # remove pacman lock
|
|||||||
alias cleanup='sudo pacman -Rns $(pacman -Qtdq)' # remove orphaned packages
|
alias cleanup='sudo pacman -Rns $(pacman -Qtdq)' # remove orphaned packages
|
||||||
alias pcu="paccache -ruk0" # remove cache of uninstalled packages
|
alias pcu="paccache -ruk0" # remove cache of uninstalled packages
|
||||||
alias pacsize="expac -H M '%m\t%n' | sort -h"
|
alias pacsize="expac -H M '%m\t%n' | sort -h"
|
||||||
|
alias pacsizeof="expac -S -H M '%m\t%n' "
|
||||||
alias pacdust="du -sh /var/cache/pacman/pkg/"
|
alias pacdust="du -sh /var/cache/pacman/pkg/"
|
||||||
alias pcdust="du -sh /var/cache/pacman/pkg/"
|
alias pcdust="du -sh /var/cache/pacman/pkg/"
|
||||||
alias pacmancache="du -sh /var/cache/pacman/pkg/"
|
alias pacmancache="du -sh /var/cache/pacman/pkg/"
|
||||||
@@ -172,6 +179,14 @@ alias ww='whatwants'
|
|||||||
alias pqi='pacman -Qi'
|
alias pqi='pacman -Qi'
|
||||||
alias pacdiff='pacdiff -s'
|
alias pacdiff='pacdiff -s'
|
||||||
|
|
||||||
|
# get size of specific pacman package:
|
||||||
|
function get_pacman_package_size () {
|
||||||
|
pacman_package_size=$(expac -S -H M '%k\t%n' $@)
|
||||||
|
echo $pacman_package_size
|
||||||
|
}
|
||||||
|
alias pacsizeof="get_pacman_package_size"
|
||||||
|
alias get_pacman_package_size="get_pacman_package_size"
|
||||||
|
|
||||||
# appman
|
# appman
|
||||||
alias appsearch="appman list | grep"
|
alias appsearch="appman list | grep"
|
||||||
alias apps="appman list | grep"
|
alias apps="appman list | grep"
|
||||||
|
|||||||
Reference in New Issue
Block a user