Created
March 4, 2020 16:39
-
-
Save derekforeman/b62a8ed4fb1f45a2622b939131ed3b5e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Setting the prefix from C-b to C-a | |
set -g prefix C-a | |
#Free original C-b binding | |
unbind C-b | |
#setting the delay betwen prefix and command | |
set -s escape-time 1 | |
#set base index for windows to 1 instead of 0 | |
set -g base-index 1 | |
#set the base index for panes to 1 instead of 0 | |
setw -g pane-base-index 1 | |
#set up binding to reload tmux.conf | |
bind r source-file ~/.tmux.conf \; display "RELOADED!" | |
#pass PREFIX to application by pressing PREFIX twice | |
bind C-a send-prefix | |
#split windows with | and - | |
bind | split-window -h | |
bind - split-window -v | |
#moving between panes with h, j, k, l | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
#Quick window selection | |
bind -r C-h select-window -t :- | |
bind -r C-l select-window -t :+ | |
#Pane resizing panes with PREFIX H, J, K, L | |
bind -r H resize-pane -L 5 | |
bind -r J resize-pane -D 5 | |
bind -r K resize-pane -U 5 | |
bind -r L resize-pane -R 5 | |
#mouse support set on if you want to support the mouse | |
set -g mouse off | |
#set default terminal mode to 256color mode | |
set -g default-terminal "screen-256color" | |
#set status line default colors | |
set -g status-style fg=white,bold,bg=black | |
#set color of window list | |
set -g window-status-style fg=cyan,bg=black | |
#set colors for active window | |
set -g window-status-current-style fg=white,bold,bg=red | |
#set colors for pane borders | |
setw -g pane-border-style fg=green,bg=black | |
setw -g pane-active-border-style fg=white,bg=yellow | |
#active pane normal, inactive shaded | |
setw -g window-style fg=colour240,bg=colour235 | |
setw -g window-active-style fg=white,bg=black | |
#Command / message line | |
set -g message-style fg=white,bold,bg=black | |
#Status line left side to show Session:window:pane | |
set -g status-left-length 40 | |
set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P" | |
#center the windo list in the status line | |
set -g status-justify centre | |
#Status line right side - 02-Feb 21:29 | |
set -g status-right "#[fg=red]#h #[fg=cyan]%d %b %R" | |
#Update status line every 60 seconds | |
set -g status-interval 60 | |
#Center window list in status line | |
set -g status-justify centre | |
#enable activity alerts | |
setw -g monitor-activity on | |
set -g visual-activity on | |
#Enable vi keys | |
setw -g mode-keys vi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-- Turn Mouse support on if that is desired.