From 9d2bc8a5eda99cd8bd5c2fe79901fe7134d5a66c Mon Sep 17 00:00:00 2001 From: Christian Baer Date: Thu, 21 Jan 2021 00:05:55 +0100 Subject: [PATCH] Updated tmux config --- .config/tmux/tmux.conf | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 932ee2e..9f3d509 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -2,7 +2,6 @@ new-session -s main # Start htop and split window set-hook -t main session-created 'send-keys -t main:0 "htop" C-m; split-window' - # remap prefix from 'C-b' to 'C-a' unbind C-b set-option -g prefix C-a @@ -27,7 +26,6 @@ bind -n M-Up select-pane -U bind -n M-Down select-pane -D # start windows and panes at 1, not 0, - set -g base-index 1 set -g pane-base-index 1 @@ -46,6 +44,7 @@ set -g @prefix_highlight_bg brightcyan #+---------+ set -g status-interval 1 set -g status on +set -g aggressive-resize on #+--------+ #+ Status + @@ -87,6 +86,10 @@ set -g status-interval 2 set -g default-terminal "screen-256color" +# Add true color & italics support with alacritty terminal +if-shell 'type "alacritty" >/dev/null' \ + 'set -g default-terminal "alacritty"' + #+--- Bars ---+ set -g status-left "#[fg=black,bg=blue,bold] #S " set -g status-right "#{prefix_highlight}#[fg=white,bg=brightblack] %Y-%m-%d #[fg=white,bg=brightblack,nobold,noitalics,nounderscore]|#[fg=white,bg=brightblack] %H:%M#[fg=cyan,bg=brightblack,nobold,noitalics,nounderscore] #[fg=black,bg=cyan,bold] #h "