From ad64a90a6b03e545dcbbec065f3acc46d45cd2a9 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 9 May 2024 14:44:35 +0200 Subject: Add tmux resurrect --- .config/tmux/tmux.conf | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to '.config/tmux') diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 8226b39..79ceb7d 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -1,11 +1,13 @@ # Load tmux config bind r source-file $HOME/.config/tmux/tmux.conf +set -g @plugin 'tmux-plugins/tpm' # Bind prefix to C-a set-option -g prefix C-a unbind-key C-b bind-key C-a send-prefix + # Allows vim to display colors correctly. set -g default-terminal "${TERM}" set -ga terminal-overrides ',*256col*:Tc' @@ -28,7 +30,11 @@ set-option -g status-right "" set-option -g window-status-format " #[fg=#E1E1E1] #{window_index}#(echo ':')#{window_name}#{window_flag} " set-option -g window-status-current-format " #[bold bg=#151515] > #{window_index}#(echo ':')#{window_name}#{window_flag} " -#set -g default-terminal screen-256color +set -s escape-time 0 +set -g display-time 1500 +set -g status-interval 5 +setw -g aggressive-resize on + set -g status-keys vi set -g history-limit 10000 @@ -79,3 +85,6 @@ bind-key -n -N 'Toggle popup window' M-g if-shell -F '#{==:#{session_name},popup -xC -yC -w 80% -h 75% \ -E 'tmux attach-session -t popup || tmux new-session -s popup' } + +set -g @plugin 'tmux-plugins/tmux-resurrect' +run '~/.config/tmux/plugins/tpm/tpm' -- cgit v1.2.3-70-g09d2