Added changed alias to script to list pacman sizes.

This commit is contained in:
Sheldon Lee 2020-11-05 01:11:52 +08:00
parent b944a3864e
commit 364b0a61ac
2 changed files with 6 additions and 2 deletions

View File

@ -6,5 +6,3 @@ alias sizes='du -hs .[^.]* * | sort -h'
alias tmux="tmux -2" alias tmux="tmux -2"
# bash tree alias # bash tree alias
alias gittree="git log --all --decorate --oneline --graph" 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"

View File

@ -33,3 +33,9 @@ nnms_fs()
sshfs unn_w19014537@newnumyspace.co.uk:/home/unn_w19014537/ $dir_name/ sshfs unn_w19014537@newnumyspace.co.uk:/home/unn_w19014537/ $dir_name/
echo "Mounted at $PWD/$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
}