summaryrefslogtreecommitdiff
path: root/shell-scripts
diff options
context:
space:
mode:
authorMike Vink <mike.vink@stater.nl>2023-05-19 12:50:33 +0000
committerMike Vink <mike.vink@stater.nl>2023-05-19 12:50:33 +0000
commit4d580d5730dbbb254a17f0e0550e5872d6eab356 (patch)
tree6a627c0e0c53e6042aa7125817709994681609e2 /shell-scripts
parentb25d7dbbbe17d640cb472e569cc8e9dd6d4cf66c (diff)
fixup
Diffstat (limited to 'shell-scripts')
-rwxr-xr-xshell-scripts/kakup9
1 files changed, 9 insertions, 0 deletions
diff --git a/shell-scripts/kakup b/shell-scripts/kakup
new file mode 100755
index 0000000..aa271fb
--- /dev/null
+++ b/shell-scripts/kakup
@@ -0,0 +1,9 @@
+# #!@bash@/bin/bash
+if ! tmux has-session -t kakoune-${USER}; then
+ tmux new -s kakoune-${USER} -d
+ export TMUX=$(tmux display-message -p '#{socket_path}')
+fi
+if ! kak -l | grep kakoune-${USER}; then
+ kak -s kakoune-${USER} -d &
+fi
+tmux attach -t kakoune-${USER}