From 364b0a61acda414181af62e75e3ecaffb70609ef Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Thu, 5 Nov 2020 01:11:52 +0800 Subject: [PATCH] Added changed alias to script to list pacman sizes. --- .bash_aliases | 2 -- .custom_bash_scripts | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index 0437f5a..96d69f3 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -6,5 +6,3 @@ alias sizes='du -hs .[^.]* * | sort -h' alias tmux="tmux -2" # bash tree alias alias gittree="git log --all --decorate --oneline --graph" -# pacman list sizes -alias pacsizes="LC_ALL=C pacman -Qi | awk '/^Name/{name=$3} /^Installed Size/{print $4$5, name}' | sort -h" diff --git a/.custom_bash_scripts b/.custom_bash_scripts index 261e1db..75b04a0 100644 --- a/.custom_bash_scripts +++ b/.custom_bash_scripts @@ -33,3 +33,9 @@ nnms_fs() sshfs unn_w19014537@newnumyspace.co.uk:/home/unn_w19014537/ $dir_name/ echo "Mounted at $PWD/$dir_name." } + +#pacman list sizes +pacsizes() +{ + pacman -Qi $1 | awk '/^Name/{name=$3} /^Installed Size/{size=$4$5; print size, name;}' | sort -h +}