1. Yuya Nishihara
  2. dotfiles

Commits

Yuya Nishihara  committed aae6a35

tmux: fall back to existing session when current session is destroyed

  • Participants
  • Parent commits 4990033
  • Branches default

Comments (0)

Files changed (1)

File dot.tmux.conf

View file
  • Ignore whitespace
 set -g base-index 1
 if '[ "$(tmux -V | sed "s/[^0-9]//g")" -ge 17 ]' 'set -g renumber-windows on'
 
+# switch to existing session when session destroyed
+set -g detach-on-destroy off
+
 # X11 clipboard
 bind-key M-w run "tmux save-buffer - | xclip -i -selection clipboard"
 bind-key C-y run "xclip -o -selection clipboard | tmux load-buffer - && tmux paste-buffer"