aboutsummaryrefslogtreecommitdiff
path: root/functions/rlsxattr.fish
blob: e52d8202713398dd2fd59e66f1e2f8bcdb6ac730 (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 . 2>/dev/null | grep '^# file:' | sed 's/^# file: //'

end