add tmuxpopup script

This commit is contained in:
2025-08-02 01:22:00 +01:00
parent 853c365b26
commit f579405d8c

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [ "$(tmux display-message -p -F "#{session-name}")" = "popup" ]; then if [ "$(tmux display-message -p -F "#{session_name}")" = "popup" ]; then
tmux detach-client tmux detach-client
else else
tmux popup -d "#{pane_current_path}" -xC -yC -w90% -h90% -E "tmux attach -t popup || tmux new -s popup" tmux popup -d "#{pane_current_path}" -xC -yC -w90% -h90% -E "tmux attach -t popup || tmux new -s popup"