diff options
Diffstat (limited to 'tmux')
-rw-r--r-- | tmux/tmux.conf | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 6e70fce..d37a57a 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -11,6 +11,26 @@ set -g message-style bg=red,fg=black set -g mode-style bg=red,fg=black set -g status-style bg=red,fg=black +# color support +set-option -s default-terminal "tmux-256color" +set-option -sa terminal-overrides ",tmux-256color:RGB" +set-option -sa terminal-overrides ",tmux-256color*:Tc" + +# escape time +set -sg escape-time 10 + +# history limit +set -g history-limit 10000 + +# automatic window renaming +setw -g automatic-rename on + +# keybind to source the config file +bind-key r source-file ~/.config/tmux/tmux.conf + +set -g status-right-length 20 +set -g status-right '%a %Y-%m-%d %H:%M' + # tpm plugin manager set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' @@ -22,9 +42,9 @@ run '~/.tmux/plugins/tpm/tpm' set -g mouse on -#unbind C-b -#set -g prefix C-Space -#bind C-Space send-prefix +unbind C-b +set -g prefix C-a +bind C-a send-prefix # Vim style pane selection bind h select-pane -L @@ -32,6 +52,14 @@ bind j select-pane -D bind k select-pane -U bind l select-pane -R +# pane border colors +set -g pane-border-style 'fg=colour223' +set -g pane-active-border-style 'fg=colour2' + +# Vim style window selection +bind-key v split-window -h +bind-key g split-window -v + ## Start windows and panes at 1, not 0 set -g base-index 1 set -g pane-base-index 1 |