Created
February 15, 2022 15:19
-
-
Save davegomez/f7a15550aaa6d272c6176c8c4b400fcc to your computer and use it in GitHub Desktop.
Tmux Configuration
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
## ENVIRONMENT | |
############## | |
# Enable mouse | |
setw -g mouse on | |
# Reload tmux config | |
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf" | |
# Remove timeout for escape key | |
set -g escape-time 0 | |
# Force term for better perf | |
set -g default-terminal "screen-256color" | |
# If a pane is manually named, do not let the window rename change it. | |
set-option -g allow-rename off | |
## KEY BINDINGS | |
############### | |
# Remap C-o as prefix | |
unbind C-b | |
set-option -g prefix C-o | |
bind-key C-o send-prefix | |
# Split panes using - and | | |
bind | split-window -h -c "#{pane_current_path}" | |
bind - split-window -v -c "#{pane_current_path}" | |
unbind '"' | |
unbind % | |
# Arrange panes evenly | |
bind C-v select-layout even-vertical | |
bind C-h select-layout even-horizontal | |
# Remap copy mode to Esc | |
unbind [ | |
bind Escape copy-mode | |
# Paste with P | |
bind P paste-buffer | |
## THEME | |
######## | |
# Panes | |
set -g pane-border-style fg=white | |
set -g pane-active-border-style fg=colour118 | |
# Base index of 1 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
# Status bar | |
set -g status-justify left | |
set -g status-interval 2 | |
set -g status-style bg=colour234,fg=colour33 | |
# set -g status-style bg=colour234,fg=colour33,dim | |
setw -g window-status-format ' #I #W ' | |
setw -g window-status-current-style fg=colour232,bg=colour33 | |
setw -g window-status-current-format ' #I #W ' | |
set -g status-left '' | |
set -g status-right '#[fg=colour233,bg=colour241,bold] %d %b #[fg=colour233,bg=colour255,bold] %H:%M ' | |
# Fig Tmux Integration: Enabled | |
source-file ~/.fig/tmux | |
# End of Fig Tmux Integration |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment