Created
March 10, 2013 05:26
-
-
Save inhies/5127250 to your computer and use it in GitHub Desktop.
current version of my .tmux.conf
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
# C-b is not acceptable -- Vim uses it | |
set -g prefix C-a | |
unbind C-b | |
bind-key C-a last-window | |
# Start numbering at 1 | |
set -g base-index 1 | |
# Allows for faster key repetition | |
set -s escape-time 0 | |
# Start numbering at 1 | |
setw -g pane-base-index 0 | |
# Easy config reloads | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
# Vertical and horizontal splitting | |
unbind % | |
bind | split-window -h | |
bind - split-window -v | |
#### Extra super cool stuff #### | |
# move between panes with hjkl | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# resize panes with capital HJKL | |
bind -r H resize-pane -L 1 | |
bind -r J resize-pane -D 1 | |
bind -r K resize-pane -U 1 | |
bind -r L resize-pane -R 1 | |
set-window-option -g mode-keys vi | |
# Colors please | |
set -g default-terminal "screen-256color" | |
set -g clock-mode-style 24 | |
# Highlight active window | |
set-window-option -g window-status-current-bg green | |
# Set window notifications OFF | |
setw -g monitor-activity off | |
set -g visual-activity off | |
# Automatically set window title | |
setw -g automatic-rename | |
set-option -g set-titles on | |
set-option -g set-titles-string '[#S:#I #H] #W' | |
bind C send-keys "clear && tmux clear-history" \; send-keys "Enter" | |
set -g history-limit 999999999 | |
# use the mause | |
set -g mode-mouse on | |
set -g mouse-select-pane on | |
set -g mouse-resize-pane on | |
set -g mouse-select-window on | |
# Allows us to use C-a a <command> to send commands to a TMUX session inside | |
# another TMUX session | |
bind-key a send-prefix | |
# Rather than constraining window size to the maximum size of any client | |
# connected to the *session*, constrain window size to the maximum size of any | |
# client connected to *that window*. Much more reasonable. | |
setw -g aggressive-resize on | |
# Set status bar | |
set -g status-bg black | |
set -g status-fg white | |
set -g status-left-length 150 | |
set -g status-left '#[fg=green]#H [#S]' | |
# Uptime stats on the right | |
set -g status-right '#[fg=yellow]#(uptime | cut -d "p" -f 2-)' | |
set -g status-right-length 150 | |
# pane movement | |
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'" | |
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'" | |
# Toggle mouse on with ^B m | |
bind m \ | |
set -g mode-mouse on \;\ | |
set -g mouse-resize-pane on \;\ | |
set -g mouse-select-pane on \;\ | |
set -g mouse-select-window on \;\ | |
display 'Mouse: ON' | |
# Toggle mouse off with ^B M | |
bind M \ | |
set -g mode-mouse off \;\ | |
set -g mouse-resize-pane off \;\ | |
set -g mouse-select-pane off \;\ | |
set -g mouse-select-window off \;\ | |
display 'Mouse: OFF' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment