Created
May 25, 2013 19:33
-
-
Save xtraclass/5650474 to your computer and use it in GitHub Desktop.
tmux configuration file
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
############################################################################################### | |
# Ctrl-A as prefix key | |
############################################################################################### | |
set-option -g prefix C-a | |
unbind-key C-b | |
bind-key a send-prefix | |
############################################################################################### | |
start-server | |
############################################################################################### | |
# Ctrl-a r or F2: reload tmux configuration. | |
############################################################################################### | |
bind-key r source-file ~/.tmux.conf \; display-message "Config reloaded..." | |
############################################################################################### | |
# terminal options and 256 colors | |
############################################################################################### | |
set-option -g default-terminal screen-256color | |
set -g terminal-overrides "*88col*:colors=88,*256col*:colors=256,xterm*:colors=256:smcup@:rmcup@" | |
set-window-option -g xterm-keys on # to make ctrl-arrow, etc. work | |
############################################################################################### | |
# Status bar | |
############################################################################################### | |
# - status bar is white on black | |
set -g status-bg black | |
set -g status-fg white | |
# - the active window is shown red | |
set-window-option -g window-status-current-bg red | |
# - the window list is on the left | |
set -g status-left ' #[fg=white]#[default]' | |
# - additional session, window, panel info is on th right | |
set -g status-right '#[fg=white]#S #W #I #F #P#[default]' | |
############################################################################################### | |
# Edit | |
############################################################################################### | |
# instructs tmux to expect UTF-8 sequences | |
setw -g utf8 on | |
# vi-style controls for copy mode | |
setw -g mode-keys vi | |
# scrollback buffer n lines | |
set -g history-limit 4096 | |
# xterm-style function key sequences | |
setw -g xterm-keys on | |
############################################################################################### | |
# Windows | |
############################################################################################### | |
# First window has index 1 | |
set-option -g base-index 1 | |
# Set window notifications | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# Automatically set window title | |
set-option -g set-titles on | |
#set-option -g set-titles-string '[#S:#I #H] #W' | |
setw -g automatic-rename | |
############################################################################################### | |
# Key mappings | |
############################################################################################### | |
# Function keys | |
bind-key -n F2 source-file ~/.tmux.conf \; display-message "Config reloaded..." | |
bind-key -n F3 previous-window | |
bind-key -n F4 next-window | |
# | |
bind-key -n F5 command-prompt -p "move window to:" "swap-window -t '%%'" | |
bind-key -n F6 choose-window | |
bind-key -n F8 command-prompt "rename-window %%" | |
# | |
bind-key -n F9 new-window | |
# - or _ split vertically | |
bind-key - split-window -v | |
bind-key _ split-window -v | |
# " or | splits horizontically | |
bind-key '"' split-window -h | |
bind-key | split-window -h | |
# use vim keys to move between panes | |
bind-key h select-pane -L | |
bind-key j select-pane -D | |
bind-key k select-pane -U | |
bind-key l select-pane -R | |
# use cursor keys to move between panes | |
bind-key left select-pane -L | |
bind-key down select-pane -D | |
bind-key up select-pane -U | |
bind-key right select-pane -R | |
# move panes between windows | |
bind-key @ command-prompt -p "send pane to window:" "join-pane -t ':%%'" | |
# Zoom current panel | |
bind-key C-z run "tmux-zoom.sh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment