Created
December 28, 2022 14:50
-
-
Save sergioperez/afc7d3e0e41abd23929a66cd974a42dc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Use vi keys | |
set -gw mode-keys vi | |
setw -g status-keys vi | |
# Set prefix to Ctrl-Space | |
unbind C-b | |
set -g prefix C-Space | |
bind Space send-prefix | |
# Set prefix2 to Ctrl-b | |
set -g prefix2 C-b | |
# Vim pane movement | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# Pane resize in all four directions using vi bindings. | |
# Can use these raw but I map them to shift-ctrl-<h,j,k,l> in iTerm. | |
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 | |
# Enable mouse controls | |
#set -g mouse on | |
# Change pane with Shift-Tab | |
#bind -n S-Tab resize-pane -L 5 | |
bind = set -g synchronize-panes | |
set-window-option -g automatic-rename off | |
set-option -g allow-rename off | |
# Aesthetic options | |
## Cyan theme | |
#set -g status-bg cyan | |
#set-window-option -g window-status-current-style fg=colour16 # 210 16 232 | |
#set -g pane-active-border-style fg=cyan | |
## Green theme | |
set -g status-bg colour29 | |
set-window-option -g window-status-current-style fg=colour16,bg=colour36 | |
set-window-option -g window-status-style fg=colour16 | |
set -g pane-active-border-style fg=colour29 | |
set-option -g pane-border-style fg=colour252 | |
set-option -g message-style bg=colour180,fg=colour237 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment