DEV Community

Discussion on: Jump to running tmux sessions with fzf

Collapse
 
macintacos profile image
Julian Torres

Hiya! I noticed that trying to escape from the popup still ends up selecting the session that was highlighted. How can you set it up such that esc or C-c just dismisses the popup and doesn't do anything?

Collapse
 
holger_hoffmann profile image
Holger Hoffmann • Edited

Just replace

xargs tmux switch-client -t
Enter fullscreen mode Exit fullscreen mode

at the end of the command with:

xargs --no-run-if-empty tmux switch-client -t
Enter fullscreen mode Exit fullscreen mode