mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-06-14 20:41:44 +00:00
Moved hub into the git plugin.
This commit is contained in:
16
plugins/pacman/functions/pacdisowned
Normal file
16
plugins/pacman/functions/pacdisowned
Normal file
@ -0,0 +1,16 @@
|
||||
# List disowned files.
|
||||
tmp="${TMPDIR-/tmp}/pacman-disowned-$UID-$$"
|
||||
db="$tmp/db"
|
||||
fs="$tmp/fs"
|
||||
|
||||
mkdir "$tmp"
|
||||
trap 'rm -rf "$tmp"' EXIT
|
||||
|
||||
pacman -Qlq | sort -u > "$db"
|
||||
|
||||
find /bin /etc /lib /sbin /usr \
|
||||
! -name lost+found \
|
||||
\( -type d -printf '%p/\n' -o -print \) | sort > "$fs"
|
||||
|
||||
comm -23 "$fs" "$db"
|
||||
|
4
plugins/pacman/functions/paclist
Normal file
4
plugins/pacman/functions/paclist
Normal file
@ -0,0 +1,4 @@
|
||||
# List explicitly installed packages.
|
||||
sudo pacman -Qei $(pacman -Qu|cut -d" " -f 1) \
|
||||
| awk ' BEGIN {FS=":"}/^Name/{printf("\033[1;36m%s\033[1;37m", $2)}/^Description/{print $2}'
|
||||
|
Reference in New Issue
Block a user