1
0
Fork 0

Remove fstag

This commit is contained in:
tastytea 2022-04-16 04:33:16 +02:00
parent 837077ea39
commit bfd9efb569
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 0 additions and 20 deletions

View File

@ -1,20 +0,0 @@
#!/usr/bin/env zsh
# tag files using extended attributes
setopt LOCAL_OPTIONS ERR_RETURN NO_UNSET PIPE_FAIL
print -u 2 \
'DEPRECATED, use xdgtag instead.
See <https://xdg.freedesktop.narkive.com/f7GQ2EpR/commonextendedattributes-xattr-tags>
To convert your files from user.fstag.tags to user.xdg.tags, run (in Zsh):
zmodload zsh/attr
for file in **/*; do
local tags=$(zgetattr ${file} user.fstag.tags 2> /dev/null)
if [[ -n ${tags} ]]; then
zsetattr ${file} user.xdg.tags ${tags}
zdelattr ${file} user.fstag.tags
fi
done'
return 1