Last active
January 25, 2023 04:45
-
-
Save burritoOverflow/0b01f314b6c0d53a77f6f2352ae01dc6 to your computer and use it in GitHub Desktop.
Simple Tmux configuration - adapted from Prag Prog's Tmux 2 Book
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
set -g default-terminal "screen-256color" | |
# set base index to windows to 1 | |
set -g base-index 1 | |
# set base index for panes to 1 | |
setw -g pane-base-index 1 | |
# reload the config file with Prefix-r | |
bind r source-file ~/.tmux.conf | |
# vertical and horizontal splits | |
bind | split-window -h | |
bind - split-window -v | |
# moving between panes with Prefix h,j,k,l | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# kill panes and bindows | |
bind q killp | |
bind Q killw | |
# Quick window selection | |
bind -r C-h select-window -t :- | |
bind -r C-l select-window -t :+ | |
# resize panes | |
bind H resize-pane -L 5 | |
bind J resize-pane -D 5 | |
bind K resize-pane -U 5 | |
bind L resize-pane -R 5 | |
set -g mouse on | |
set -g status-style fg=white,bg=colour237 | |
set -g window-status-style fg=colour245,bg=colour54,bold | |
# set the pane style | |
setw -g pane-border-style fg=red,bg=black | |
setw -g pane-active-border-style fg=green,bold,bg=black | |
# message prompt styling | |
set -g message-style fg=white,bold,bg=black | |
# dim inactive panes | |
setw -g window-style fg=colour240,bg=colour235 | |
setw -g window-active-style fg=white,bg=black | |
set -g status-justify centre | |
set -g status-left-length 34 | |
set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P" | |
setw -g monitor-activity on | |
set -g visual-activity on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment