summaryrefslogtreecommitdiff
path: root/micmot
diff options
context:
space:
mode:
Diffstat (limited to 'micmot')
-rwxr-xr-xmicmot17
1 files changed, 17 insertions, 0 deletions
diff --git a/micmot b/micmot
new file mode 100755
index 0000000..4571011
--- /dev/null
+++ b/micmot
@@ -0,0 +1,17 @@
+#!/bin/sh -eu
+
+[ "${MICMOT_SOCKET:-}" ] || MICMOT_SOCKET='micmot'
+[ "${MICMOT_SESSION:-}" ] || MICMOT_SESSION='chat'
+
+export MICMOT_SOCKET
+
+_basedir="$( realpath "$( dirname "$0" )" )"
+PATH="${PATH}:${_basedir}/lib"
+export PATH
+
+tmux -f "./lib/tmux-micmot.conf" \
+ -L "${MICMOT_SOCKET}" \
+ new-session -s "${MICMOT_SESSION}" \
+ "micmot-menu-pane"
+
+unset _basedir