Created
January 30, 2014 07:33
-
-
Save qcom/8704142 to your computer and use it in GitHub Desktop.
my 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
# change command prefix binding | |
unbind C-b | |
set -g prefix C-a | |
# decrease command-sending delay | |
set -sg escape-time 1 | |
# make window and pane index one-based | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
# allow config reloads with prefix-r | |
bind r source-file ~/.tmux.conf \; display "Reloaded" | |
# ensure cross-app C-a compatibility with double C-a | |
bind C-a send-prefix | |
# change awkward default split-window bindings to something more memorable | |
bind | split-window -h | |
bind - split-window -v | |
# vimify window-selecting commands | |
bind -r C-h select-window -t :- | |
bind -r C-l select-window -t :+ | |
# vimify pane-selecting commands | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# vimify pane-resizing commands | |
bind -r H resize-pane -L 3 | |
bind -r J resize-pane -D 3 | |
bind -r K resize-pane -U 3 | |
bind -r L resize-pane -R 3 | |
# set terminal-type for proper coloring | |
set -g default-terminal "screen-256color" | |
# change status bar colors | |
set -g status-fg white | |
set -g status-bg black | |
# change default window colors | |
setw -g window-status-fg cyan | |
setw -g window-status-bg default | |
setw -g window-status-attr dim | |
# change active (current) window colors | |
setw -g window-status-current-fg white | |
setw -g window-status-current-bg red | |
setw -g window-status-current-attr bright | |
# change default pane border color | |
set -g pane-border-fg cyan | |
set -g pane-border-bg black | |
# change active pane border color | |
set -g pane-active-border-fg white | |
set -g pane-active-border-bg red | |
# change command line colors | |
set -g message-fg white | |
set -g message-bg black | |
set -g message-attr bright | |
# change status bar's left component | |
set -g status-left "#[fg=green][#S]" | |
## set -g status-left-length 40 | |
## set -g status-left "#[fg=green]Session: #S #[fg=yellow]#I #[fg=cyan]#P" | |
# center window list | |
set -g status-justify centre | |
# join windows | |
# bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'" | |
bind-key @ command-prompt -p "create pane from:" "join-pane -s ':%%'" | |
# set scrollback to 10000 lines | |
set -g history-limit 10000 | |
# let C-k clear tmux scrollback history | |
bind -n C-k clear-history | |
# allow tmux to reorder window numbers on deletion of a window | |
set-option -g renumber-windows on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment