tmux: Enhance session detachment behaviour
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
set -g @plugin 'tmux-plugins/tpm'
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||||
|
set -g @plugin 'laktak/extrakto'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||||
|
|
||||||
# Colors
|
# Colors
|
||||||
set -g @bg "#1A212E"
|
set -g @bg "#1A212E"
|
||||||
@@ -26,4 +28,17 @@ setw -g window-status-format ' #I #[fg=#{@fg}]#W #[fg=#{@orange}]#F '
|
|||||||
|
|
||||||
setw -g window-status-bell-style 'fg=#{@orange} bg=#{@red} bold'
|
setw -g window-status-bell-style 'fg=#{@orange} bg=#{@red} bold'
|
||||||
|
|
||||||
|
# Controls
|
||||||
|
setw -g mode-keys vi
|
||||||
|
# set -g mouse on
|
||||||
|
|
||||||
|
# Detached sessions
|
||||||
|
set -g destroy-unattached on
|
||||||
|
|
||||||
|
# Make manual detachment different from defaults
|
||||||
|
# (to prevent accidental detachments)
|
||||||
|
unbind d
|
||||||
|
bind D confirm-before -p "Detach HOST tmux? (y/n)" detach-client
|
||||||
|
|
||||||
|
# Run tmux plugin manager
|
||||||
run '~/.tmux/plugins/tpm/tpm'
|
run '~/.tmux/plugins/tpm/tpm'
|
||||||
|
|||||||
Reference in New Issue
Block a user