Created
March 14, 2012 09:19
-
-
Save eval/2035316 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
## keybindings | |
unbind C-b | |
unbind C-a | |
unbind % | |
unbind , | |
unbind . | |
unbind n | |
unbind p | |
unbind [ | |
unbind '"' | |
unbind l | |
unbind & | |
unbind "'" | |
#unbind shift | |
set-option -g prefix C-a # C-a for perfix just like screen | |
#set-option -g prefix ` # C-a for perfix just like screen | |
bind-key C-a last-window | |
#bind-key ` last-window | |
bind-key | split-window -h | |
bind-key \ split-window -h | |
bind-key _ split-window -v | |
bind-key x kill-pane | |
bind-key X kill-window | |
bind-key q confirm-before kill-session | |
bind-key Q confirm-before kill-server | |
bind-key , previous-window # < | |
bind-key . next-window # > | |
bind-key < swap-window -t :- | |
bind-key > swap-window -t :+ | |
bind-key n command-prompt 'rename-window %%' | |
bind-key N command-prompt 'rename-session %%' | |
bind-key Escape copy-mode -u | |
bind-key Up copy-mode -u | |
bind-key r source-file ~/.tmux.conf; display-message " ✱ ~/.tmux.conf is reloaded" | |
bind-key R refresh-client | |
bind-key a send-key C-a | |
bind-key C-j resize-pane -L 5 | |
bind-key C-l resize-pane -R 5 | |
bind-key C-k resize-pane -D 5 | |
bind-key C-i resize-pane -U 5 | |
# select windows >10 | |
# http://sourceforge.net/mailarchive/message.php?msg_id=27488231 | |
bind M-1 command-prompt -p "index above 10:" "select-window -t 1%%" | |
## set status bar | |
set-option -g status-utf8 on | |
set-option -g status-bg colour11 | |
#set-option -g status-fg colour8 | |
set-option -g status-fg colour255 | |
#set-option -g status-left '⣿' | |
#set-option -g status-right '⡇ #[bold]❐ #S:#I#[default] ⡇ #[bold]#(whoami) ● #H#[default] ' | |
#set-option -g status-right '⡇ ❐ #S ⡇ ❖ #(rvm tools identifier) ⡇ #(whoami) ● #H ' | |
set-option -g status-left ' #[bold]❐ #S#[default] ⡇' | |
set-option -g status-right '#[bold]#(whoami) ● #H#[default] ' | |
set-option -g status-left-fg black | |
set-option -g status-right-fg black | |
set-option -g status-right-length 60 | |
set-option -g status-right-attr bold | |
set-option -g status-left-length 60 | |
## highlight active window | |
set-window-option -g window-status-bg colour237 | |
set-window-option -g window-status-current-bg colour166 | |
#set-window-option -g window-status-current-fg colour15 | |
set-window-option -g window-status-current-fg colour255 | |
set-window-option -g window-status-current-attr bold | |
set-window-option -g window-status-current-format ' #I #W ' | |
## set window notifications | |
set-option -g visual-activity on | |
set-option -g visual-content on | |
set-window-option -g monitor-activity on | |
set-window-option -g automatic-rename off | |
## tmux window titling for X | |
set-option -g set-titles on | |
set-option -g set-titles-string '[#I] #W' | |
set-window-option -g automatic-rename on | |
set-window-option -g window-status-format ' #I #W ' | |
set-window-option -g window-status-attr bold | |
# starts windows at 1 not 0 | |
set-option -g base-index 1 | |
## enable mouse | |
set-option -g mouse-select-pane on | |
set-window-option -g mode-keys vi | |
set-window-option -g mode-mouse on | |
# set-window-option -g monitor-activity off | |
# set-window-option -g monitor-content off | |
# set-option -g status-keys vi | |
# set-option -g history-limit 4096 | |
## pane border and colors | |
set-option -g pane-active-border-fg yellow | |
set-option -g pane-border-fg white | |
# pane movement | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# Zoom | |
# http://superuser.com/questions/238702/maximizing-a-pane-in-tmux | |
unbind + | |
bind + new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \; swap-pane -s tmux-zoom.0 \; select-window -t tmux-zoom | |
unbind - | |
bind - last-window \; swap-pane -s tmux-zoom.0 \; kill-window -t tmux-zoom |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment