update reactiontag
This commit is contained in:
parent
4f0843110b
commit
3e9f1d8c94
|
@ -3,7 +3,7 @@
|
|||
|
||||
setopt LOCAL_OPTIONS ERR_RETURN NO_UNSET PIPE_FAIL
|
||||
|
||||
if [[ ! -v 1]]; then
|
||||
if [[ ! -v 1 ]]; then
|
||||
print -u 2 "usage: ${0} <FILE>"
|
||||
return 1
|
||||
fi
|
||||
|
@ -11,8 +11,11 @@ file=${1}
|
|||
|
||||
zmodload zsh/attr
|
||||
|
||||
read -r -d '?source: ' source
|
||||
read -r '?source: ' source
|
||||
zsetattr ${file} user.source ${source}
|
||||
|
||||
read -r -d '?description: ' description
|
||||
zsetattr ${file} user.description ${description}
|
||||
tmpfile==()
|
||||
print "enter description, save and exit editor" > ${tmpfile}
|
||||
eval ${VISUAL} ${tmpfile}
|
||||
zsetattr ${file} user.description "$(<${tmpfile})"
|
||||
rm ${tmpfile}
|
||||
|
|
Loading…
Reference in New Issue