Created
January 7, 2020 14:19
-
-
Save jbfriedrich/5b10608e5d77742edc6409af2a8814db to your computer and use it in GitHub Desktop.
My tmux configuration file (v1.8.4)
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
# Make Ctrl+x Control key | |
unbind C-b | |
set -g prefix C-x | |
bind-key C-x send-prefix | |
# Rename window with C-x-A | |
unbind C-, | |
bind-key A command-prompt 'rename-window %%' | |
# Resize panes easily with Alt/Option | |
unbind M-Up | |
unbind M-Left | |
unbind M-Right | |
unbind M-Down | |
bind-key -n -r M-Up resize-pane -U 5 | |
bind-key -n -r M-Left resize-pane -L 5 | |
bind-key -n -r M-Right resize-pane -R 5 | |
bind-key -n -r M-Down resize-pane -D 5 | |
# Renumber windows | |
set -g renumber-windows on | |
set -g default-terminal "screen-256color" | |
# Allow mouse pane & window usage (currently disabled) | |
#set -g mouse-utf8 on | |
#set -g mouse-resize-pane on | |
#set -g mouse-select-pane on | |
#set -g mouse-select-window on | |
# Default shell is bash | |
set -g default-shell '/bin/bash' | |
# No bell action by default | |
set -g bell-action none | |
# Statusbar properties | |
set -g status-utf8 on | |
set -g status-left-length 50 | |
set -g display-time 3000 | |
set -g status-bg blue | |
set -g status-fg black | |
set-window-option -g window-status-current-attr bright | |
set-window-option -g window-status-current-bg red | |
set-window-option -g window-status-current-fg white | |
set-option -g status-left ' #h |' | |
set-option -g status-right ' | %Y-%m-%d %H:%M #[default]' | |
# Quickly move around panes with Ctrl+left/right/up/down | |
unbind C-Up | |
unbind -n C-Up | |
bind -n -r C-Up select-pane -U | |
unbind C-Down | |
unbind -n C-Down | |
bind -n -r C-Down select-pane -D | |
unbind C-Left | |
unbind -n C-Left | |
bind -n -r C-Left select-pane -L | |
unbind C-Right | |
unbind -n C-Right | |
bind -n -r C-Right select-pane -R | |
# Quickly jump to windows using the Fn keys | |
unbind -n F1 | |
bind -n F1 select-window -t 0 | |
unbind -n F2 | |
bind -n F2 select-window -t 1 | |
unbind -n F3 | |
bind -n F3 select-window -t 2 | |
unbind -n F4 | |
bind -n F4 select-window -t 3 | |
unbind -n F5 | |
bind -n F5 select-window -t 4 | |
unbind -n F6 | |
bind -n F6 select-window -t 4 | |
unbind -n F7 | |
bind -n F7 select-window -t 6 | |
unbind -n F8 | |
bind -n F8 select-window -t 7 | |
unbind -n F9 | |
bind -n C-F9 select-window -t 8 | |
unbind -n C-F10 | |
bind -n C-F10 select-window -t 9 | |
# Use F11 and F12 to select the previous/next window | |
bind -n F11 select-window -p | |
bind -n F12 select-window -n | |
# Use F13 - F16 (Mac) keys to quickly selects layouts | |
bind -n S-F1 select-layout even-vertical | |
bind -n S-F2 select-layout even-horizontal | |
bind -n S-F3 select-layout tiled | |
bind -n S-F4 select-layout main-horizontal | |
bind -n S-F5 select-layout main-vertical | |
# Loading powerline (currently not in use) | |
#run-shell "powerline-daemon -q" | |
#source /usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf | |
#source /usr/lib/python2.7/site-packages/powerline/bindings/tmux/powerline_tmux_1.8_plus.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment