Created
October 26, 2013 01:32
-
-
Save ruliana/7164286 to your computer and use it in GitHub Desktop.
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
# General | |
# set -g terminal-overrides 'xterm*:smcup@:rmcup@' | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
set -g prefix C-a | |
set -s escape-time 0 | |
set -g set-titles on | |
set -g mode-keys vi | |
#set -g set-titles-string ' #(__git_ps1) ' | |
set -g status-interval 2 | |
setw -g mode-keys vi | |
# Bindings | |
unbind C-b | |
unbind % | |
bind r source-file ~/.tmux.conf \; display 'Reloaded!' | |
bind \ split-window -h | |
bind - split-window -v | |
bind-key k select-pane -U | |
bind-key j select-pane -D | |
bind-key h select-pane -L | |
bind-key l select-pane -R | |
# Ctrl-Left/Right cycles thru windows (no prefix) | |
bind-key -n "C-Left" select-window -t :- | |
bind-key -n "C-Right" select-window -t :+ | |
# Ctrl-Up/Down cyles thru panes (no prefix) | |
#bind-key -n "C-Up" select-pane -t :.- | |
#bind-key -n "C-Down" select-pane -t :.+ | |
# Cycle to next pane | |
bind-key 'C-a' select-pane -t :.+ | |
bind-key 'a' select-pane -t :.+ | |
# Status bar | |
set -g status-bg cyan | |
set -g status-fg white | |
set -g status-interval 5 | |
set -g status-left '[#S:#I.#P]' | |
set -g status-left-bg black | |
set -g status-right-bg black | |
set -g status-right ' | #H | %Y-%m-%d %H:%M #[default]' | |
# Mouse | |
set -g mouse-select-pane on | |
set -g mouse-select-window on | |
# window | |
set -g window-status-current-format ' #[bg=colour136]#[fg=colour255,bold]#I:#W ' | |
set -g mode-mouse on | |
# Pane | |
set -g pane-active-border-fg black | |
set -g pane-active-border-bg cyan | |
# X Copy/Paste | |
unbind p | |
bind C-c run "tmux show-buffer | xsel -i -b" | |
bind C-v run "tmux set-buffer -- \"$(xsel -o -b)\"; tmux paste-buffer" | |
bind-key -t vi-copy 'v' begin-selection | |
bind-key -t vi-copy 'y' copy-selection | |
bind p paste-buffer | |
bind-key -t vi-copy 'r' rectangle-toggle | |
# Log output to a text file on demand | |
bind P pipe-pane -o "cat >>~/#W.log" \; display "Toggled logging to ~/#W.log" | |
# Synchronize panes | |
bind C-s set-window-option synchronize-panes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment