summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-05-09 14:44:35 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-05-09 14:44:35 +0200
commitad64a90a6b03e545dcbbec065f3acc46d45cd2a9 (patch)
treebe16cacbb281f25515ce2dca51c16d7c357e18d1
parent3476039bee3ac7dce1198e94e08728f0cea7209d (diff)
Add tmux resurrect
-rw-r--r--.config/tmux/tmux.conf11
1 files changed, 10 insertions, 1 deletions
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'