aboutsummaryrefslogtreecommitdiff
path: root/tag.sh
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-02-24 16:24:17 +0100
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2023-02-24 16:24:17 +0100
commit5522f39034b45f8188f535bf38cb3e3f30cac072 (patch)
treec76b1ed05bbb3724b0f6c62f6f6b88ad192f674b /tag.sh
parentcc9f03d891a2195e7628a360e51056e9c2676af2 (diff)
downloadacme-scripts-5522f39034b45f8188f535bf38cb3e3f30cac072.tar.gz
acme-scripts-5522f39034b45f8188f535bf38cb3e3f30cac072.zip
Move tag to tag.sh
Diffstat (limited to 'tag.sh')
-rwxr-xr-xtag.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tag.sh b/tag.sh
new file mode 100755
index 0000000..8fe2aa2
--- /dev/null
+++ b/tag.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+CMD=`echo $0 | sed 's/.*\///g'`
+
+TAG="Get $CMD"
+
+# Clear the tag before adding the new one
+echo cleartag | 9p write acme/$winid/ctl
+
+printf "\n$TAG\nEdit" | 9p write acme/$winid/tag