Created
May 10, 2012 06:26
-
-
Save avsej/2651418 to your computer and use it in GitHub Desktop.
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
unbind C-b | |
set -g prefix C-t | |
### KEY BINDINGS | |
# first unbind, then bind: this allows on-the-fly config reloading (with C-r) | |
# quick tip: the '-r' flag means they can be pressed repeatedly | |
# note: I only added the shortcuts I use, please "man tmux" to go beyond | |
# find a window by name | |
unbind f | |
bind f command-prompt "find-window '%%'" | |
# rename a window (gnuscreen default shortcut) | |
unbind A | |
bind A command-prompt "rename-window %%" | |
# backspace for last active window | |
unbind Tab | |
bind -r Tab last-window | |
# split | |
unbind C-q | |
bind -r C-q split-window -v -p 20 | |
unbind q | |
bind -r q split-window -v -p 20 | |
# some general config options | |
set -g history-limit 10000 | |
set -g repeat-time 300 | |
set -g mode-keys vi | |
set -g status-keys vi | |
set-window-option -g xterm-keys on | |
set -g status on | |
set -g bell-action any | |
setw -g monitor-activity on # monitor activity of all windows | |
setw -g monitor-content on # monitor for content changes as well | |
set -g visual-activity off # no flashy messages in my status line please! (watch the window attrs '#-*!+' instead) | |
set -g visual-content off # idem | |
setw -g mode-mouse off # on prevents mouse select on the terminal | |
set -g mouse-select-pane off # on prevents mouse select in panes | |
setw -g utf8 on | |
# window title | |
set -g set-titles on | |
setw -g automatic-rename on | |
# status bar | |
set -g status-utf8 on | |
set -g status-justify centre | |
set -g status-interval 5 | |
set -g status-left '#P' | |
set -g status-left-length 30 | |
# set -g status-right '#(cut -d " " -f 1-3 /proc/loadavg) #(acpi | cut -d "," -f 2 | sed "s/^ *//g") %R' | |
set -g status-right '' | |
set -g status-right-length 45 | |
set -g default-terminal "rxvt-unicode" | |
set -g terminal-overrides 'rxvt-unicode*:sitm@...@' | |
# colors | |
set -g status-bg default | |
set -g status-fg default | |
set -g pane-border-fg black | |
set -g pane-active-border-fg black | |
# vi vi vi | |
unbind [ | |
bind v copy-mode | |
unbind p | |
bind p paste-buffer | |
bind -t vi-copy 'v' begin-selection | |
bind -t vi-copy 'y' copy-selection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment