]> Sergey Matveev's repositories - dotfiles.git/blobdiff - bin/bin/tmux-path-extractor.sh
Workable preview in tmux-path-extractor
[dotfiles.git] / bin / bin / tmux-path-extractor.sh
index 2e2e3858fb8155799cee65446df36190ce04fb89..ed2cebcf8c54a52baa3e607f4b5ba61ecabfff2a 100755 (executable)
@@ -1,10 +1,6 @@
 #!/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 new-session -d -s path-extractor -c "$1" "pe < /tmp/tmux-buffer ; tmux detach"
 tmux set-option -t path-extractor status off
 exec tmux attach-session -t path-extractor