aboutsummaryrefslogtreecommitdiff
path: root/functions/rlsxattr.fish
blob: 94d9078b27e87dfac3e9842f2aa28035b87bb3f1 (plain)
1
2
3
4
5
6
7
8
9
10
function rlsxattr --description 'Recursively list all files with xattrs'

if not check_install 'getfattr' 'attr'
  echo "Can't find getfattr."
  return 1
end

command getfattr -R -h -d . &>/dev/null | grep '^# file:' | sed 's/^# file: //'

end