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