]> Sergey Matveev's repositories - dotfiles.git/blobdiff - bin/bin/tmux-path-extractor.sh
path-extractor popup
[dotfiles.git] / bin / bin / tmux-path-extractor.sh
diff --git a/bin/bin/tmux-path-extractor.sh b/bin/bin/tmux-path-extractor.sh
new file mode 100755 (executable)
index 0000000..2e2e385
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+tmux has-session -t path-extractor && tmux kill-session -t path-extractor || :
+tmux new-session -d -s path-extractor "
+    ~/bin/path-extractor.zsh < /tmp/tmux-buffer
+    tmux detach
+    sleep 20
+"
+tmux set-option -t path-extractor status off
+exec tmux attach-session -t path-extractor