Last active
December 24, 2015 09:39
-
-
Save jamesdabbs/6778377 to your computer and use it in GitHub Desktop.
My current tmux config
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 -g prefix C-b | |
# remap prefix to Control + a | |
# unbind C-b | |
# set -g prefix C-a | |
bind-key r source-file ~/.tmux.conf \; display-message " Config reloaded ... " | |
set -g history-limit 50000 | |
set -s escape-time 0 | |
# Windows | |
bind-key -n M-C-h previous-window | |
bind-key -n M-C-l next-window | |
bind-key M-C-l new-window | |
bind-key C-f command-prompt -p find-session 'switch-client -t %%' | |
bind-key C-x confirm-before -p " Kill session #S? (y/n)" kill-session | |
# Panes | |
bind-key -n C-h select-pane -L | |
bind-key -n C-j select-pane -D | |
bind-key -n C-k select-pane -U | |
bind-key -n C-l select-pane -R | |
bind-key C-j split-window -v | |
bind-key C-l split-window -h | |
bind-key -n C-z resize-pane -Z | |
# Echo input to all panes | |
bind-key e setw synchronize-panes on | |
bind-key E setw synchronize-panes off | |
# Unfortunately, vimmish pane movement overrides my usual C-l | |
bind-key l send-key C-l | |
# Status bar customization | |
set -g status-bg colour234 | |
set -g status-fg white | |
set-option -g status-position top | |
set-option -g status-justify centre | |
set-option message-bg colour12 | |
set-option message-command-bg colour12 | |
set-option -g status-left-length 40 | |
set-option -g status-left ' #[fg=green][ #[fg=colour12]#S #[fg=green]| #[fg=colour12]#(echo $USER) @ #h #[fg=green]]' | |
set-window-option -g allow-rename off | |
set-window-option -g window-status-format '#[fg=colour12][#I]#[default,dim] #W#[fg=colour240]#F ' | |
set-window-option -g window-status-current-format '#[fg=green][#I] #[default,bold]#W#[fg=colour240]#F ' | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
set -g status-right-length 40 | |
set -g status-right '#[fg=green][ #[fg=colour12]%a %-m/%d %l:%M%p #[fg=green]| ⚡ #[fg=colour12]#(battery) #[fg=green]] ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment