Remove fstag
This commit is contained in:
parent
837077ea39
commit
bfd9efb569
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user