You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
432 B
Fish
23 lines
432 B
Fish
function pacdisowned -d "Display list of disowned files"
|
|
if test -d "$TMPDIR"
|
|
set tmp $TMPDIR
|
|
else
|
|
set tmp "/tmp"
|
|
end
|
|
set dir (mktemp -d -p $tmp)
|
|
|
|
set -l fs "$dir/fs"
|
|
set -l db "$dir/db"
|
|
|
|
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"
|
|
|
|
# clean-up after ourself
|
|
rm -rf "$dir"
|
|
end
|
|
|