Last active
March 10, 2024 19:45
-
-
Save guillermoap/797283c1da56f4d528cae9f754b68769 to your computer and use it in GitHub Desktop.
Tmux conf with remapped prefix, pane creation
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 vi keys | |
setw -g mode-keys vi | |
set -g default-terminal "xterm" | |
# allow for colors | |
set -g default-terminal "screen-256color" | |
# set -g default-terminal "xterm-256color" | |
set -g status-style 'bg=colour236','fg=white' | |
# mouse Config | |
set -g mouse on | |
# bind new prefix | |
unbind C-b | |
set -g prefix C-a | |
# reduce escape-time (aka the time it needs to process the esc key press) | |
set -sg escape-time 10 | |
# pane and window numbering | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
set -g display-panes-time 4000 | |
# use Alt-vim keys without prefix key to switch panes | |
bind -n M-h select-pane -L | |
bind -n M-j select-pane -D | |
bind -n M-k select-pane -U | |
bind -n M-l select-pane -R | |
# reload tmux config | |
bind r source-file ~/.tmux.conf | |
# split panes using | and - | |
bind - split-window -h | |
bind _ split-window -v | |
unbind '"' | |
unbind % | |
# don't rename windows automatically | |
set-option -g allow-rename off | |
# set scroll back buffer size | |
set-option -g history-limit 50000 | |
# add clear buffer functionality | |
bind -n C-k send-keys -R \; send-keys C-l \; clear-history \; | |
# set inactive/active window styles | |
set -g window-style 'fg=colour247' | |
set -g window-active-style 'fg=white' | |
# set the pane border colors | |
set -g pane-border-style 'fg=colour236' | |
set -g pane-active-border-style 'fg=colour236' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment