diff options
Diffstat (limited to '.config/tmux/.tmux.conf')
-rw-r--r-- | .config/tmux/.tmux.conf | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/.config/tmux/.tmux.conf b/.config/tmux/.tmux.conf index 0fda630..544585a 100644 --- a/.config/tmux/.tmux.conf +++ b/.config/tmux/.tmux.conf @@ -1,13 +1,28 @@ -# show session, window, pane in left status bar -set -g @plugin 'tmux-plugins/tpm' -set -g @plugin 'tmux-plugins/tmux-yank' -set -g @plugin "arcticicestudio/nord-tmux" +# Load tmux config +bind r source-file $HOME/.config/tmux/.tmux.conf + +# Bind prefix to C-a +set-option -g prefix C-a +unbind-key C-b +bind-key C-a send-prefix + +# Default shell +set-option -g default-shell /usr/bin/zsh # Allows vim to display colors correctly. set -g default-terminal 'screen-256color' set -ga terminal-overrides ',*256col*:Tc' -set -g status off +# Status line +set -g status on +set-option -g status-style bg=#121212,fg=white +set-option -g automatic-rename on +set-option -g renumber-windows on +set-option -g status-left "" +set -ga status-left '#[bg=black]#[fg=white] #{?window_zoomed_flag,, }' +set-option -g status-right "" +set-option -g window-status-format " #{window_index}#(echo ':')#{window_name}#{window_flag} " +set-option -g window-status-current-format " #[bold,bg=#1c1c1c] #{window_index}#(echo ':')#{window_name}#{window_flag} " #set -g default-terminal screen-256color set -g status-keys vi @@ -15,10 +30,8 @@ set -g history-limit 10000 setw -g mode-keys vi setw -g mouse off -#setw -g monitor-activity on -#setw -g alternate-screen on -# split panes using | and - +# split panes bind s split-window -h bind v split-window -v unbind '"' @@ -59,10 +72,3 @@ set -g base-index 1 # No delay for escape key press set -sg escape-time 0 - -# Reload tmux config -bind r source-file $HOME/.config/tmux/.tmux.conf - -if-shell 'test "$SSH_CONNECTION"' 'set -g status-bg red' - -run '~/.config/tmux/plugins/tpm/tpm' |