Last active
February 5, 2020 20:36
-
-
Save auxiliary/c9055e9f1c742e788b82160db6dd0900 to your computer and use it in GitHub Desktop.
My tmux configurations
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
# remap prefix from 'C-b' to 'C-a' | |
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# split panes using | and - | |
bind \ split-window -h | |
bind - split-window -v | |
unbind '"' | |
unbind % | |
# switch panes using Alt-arrow without prefix | |
bind -n M-Left select-pane -L | |
bind -n M-Right select-pane -R | |
bind -n M-Up select-pane -U | |
bind -n M-Down select-pane -D | |
# Enable mouse control (clickable windows, panes, resizable panes) | |
# set -g mouse-select-window on | |
# set -g mouse-select-pane on | |
# set -g mouse-resize-pane on | |
#set-option -g mouse on | |
set-option -g repeat-time 0 | |
# Remove the confirmation when killing a pane | |
bind-key x kill-pane | |
# Nested Tmux config | |
set -g status-bg green | |
setw -g window-status-current-style bg=black,fg=white | |
setw -g window-status-current-format ' #I:#W#F ' | |
bind -n C-t new-window -a | |
bind -n S-left prev | |
bind -n S-right next | |
bind -n S-C-left swap-window -t -1 | |
bind -n S-C-right swap-window -t +1 | |
bind -n M-F11 set -qg status-bg colour245 | |
bind -n M-F12 set -qg status-bg colour186 | |
bind -n S-up \ | |
send-keys M-F12 \; \ | |
set -qg status-bg colour245 \; \ | |
unbind -n S-left \; \ | |
unbind -n S-right \; \ | |
unbind -n S-C-left \; \ | |
unbind -n S-C-right \; \ | |
unbind -n C-t \; \ | |
set -qg prefix C-b | |
bind -n S-down \ | |
send-keys M-F11 \; \ | |
set -qg status-bg colour186 \; \ | |
bind -n S-left prev \; \ | |
bind -n S-right next \; \ | |
bind -n S-C-left swap-window -t -1 \; \ | |
bind -n S-C-right swap-window -t +1 \; \ | |
bind -n C-t new-window -a -c "#{pane_current_path}" \; \ | |
set -qg prefix C-a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment