summaryrefslogtreecommitdiffstats
path: root/bin/acme/tag
diff options
context:
space:
mode:
Diffstat (limited to 'bin/acme/tag')
-rwxr-xr-xbin/acme/tag15
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/acme/tag b/bin/acme/tag
new file mode 100755
index 0000000..2e3db98
--- /dev/null
+++ b/bin/acme/tag
@@ -0,0 +1,15 @@
+HOME/plan9/bin/rc
+# Add commands to window tag depending on window name
+
+. 9.rc
+. $PLAN9/lib/acme.rc
+
+event=$1
+target=$2
+
+switch($event$target) {
+case new/*.go
+ echo -n 'ClearWin Get Lrefs Ldef' | 9p write acme/$winid/tag
+case new/*Errors
+ echo -n 'ClearWin Get' | 9p write acme/$winid/tag
+}