Shell: pacman 'pli' function for listing recently installed packages.

Needs expac.
master
Pierre Neidhardt 2013-06-18 18:37:40 +02:00
parent 9373a462da
commit 98e7b6bb20
2 changed files with 5 additions and 1 deletions

View File

@ -124,7 +124,6 @@ if [ -e "/usr/bin/pacman" ]; then
PACMAN_FRONTEND='pacman'
## The eval trick lets us define the alias after the variable has been expanded.
## Bash will not auto-complete aliases.
eval 'alias pc="sudo $PACMAN_FRONTEND -Sc"'
eval 'alias pi="sudo $PACMAN_FRONTEND -S --needed"'
eval 'alias pqi="$PACMAN_FRONTEND -Qi"'

View File

@ -394,6 +394,11 @@ if [ -n "$(command -v pacman)" ]; then
{
pacman -Ql "$@" | grep -v "/$"
}
pli ()
{
expac -t %F-%T '%-8l %n' |sort -rn|head -${1:-30}
}
fi
##==============================================================================