Skip to content

Instantly share code, notes, and snippets.

@andrevdm
Last active December 11, 2023 12:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrevdm/78bacea01ce487b85c246461110b76c7 to your computer and use it in GitHub Desktop.
Save andrevdm/78bacea01ce487b85c246461110b76c7 to your computer and use it in GitHub Desktop.
tmux floating terminal per pane
#Per pane floating window
#Toggle with ` (grave) key
bind ` if-shell "echo '#{session_name}' | grep -q 'fterm-'" {
detach-client
} {
run-shell "tmux popup -E 'tmux attach -t fterm-#{session_name}-#{pane_id} || tmux new -s fterm-#{session_name}-#{pane_id}'"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment