]> Sergey Matveev's repositories - dotfiles.git/blob - bin/bin/tmux-path-extractor.sh
Workable preview in tmux-path-extractor
[dotfiles.git] / bin / bin / tmux-path-extractor.sh
1 #!/bin/sh
2
3 tmux has-session -t path-extractor && tmux kill-session -t path-extractor || :
4 tmux new-session -d -s path-extractor -c "$1" "pe < /tmp/tmux-buffer ; tmux detach"
5 tmux set-option -t path-extractor status off
6 exec tmux attach-session -t path-extractor