tmux attach create session if one does not exist

This commit is contained in:
2024-10-22 20:55:14 +02:00
parent 821bf73839
commit ee6d7cd172

View File

@@ -33,4 +33,7 @@ bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# if run as "tmux attach", create a session if one does not already exist
new-session -n $HOST
run '~/.tmux/plugins/tpm/tpm'