summary refs log tree commit diff stats
path: root/zsh/functions/runit/getservicedir
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/functions/runit/getservicedir')
-rw-r--r--zsh/functions/runit/getservicedir2
1 files changed, 2 insertions, 0 deletions
diff --git a/zsh/functions/runit/getservicedir b/zsh/functions/runit/getservicedir
new file mode 100644
index 00000000..2e5d961c
--- /dev/null
+++ b/zsh/functions/runit/getservicedir
@@ -0,0 +1,2 @@
+#!/usr/bin/env zsh
+print ${$(readlink ${SVDIR:-/service}/$1):h}
\ No newline at end of file