Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
89 lines (66 sloc) 2.61 KB
#set-g prefix Ctrl-a
unbind %
bind | split-window -h
bind - split-window -v
set-option -g default-terminal "screen-256color"
set -g base-index 1
# set-option -g default-terminal "screen-256color"
set-option -g status-keys vi
set-option -g bell-action any
set-option -g set-titles on
set-option -g set-titles-string '#H:#S.#I.#P #W' # #T' # window number,program name,active (or not)
set-option -g visual-bell off #on
setw -g mode-keys vi
# Make sure we can copy/paste the way vi does
unbind p
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
setw -g monitor-activity on
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
#bind p previous-window
#bind n next-window
#bind j up-pane
#bind k down-pane
set-option -g status-utf8 on
# set-option -g status-justify centre
set-option -g status-justify left
set-option -g status-bg black
set-option -g status-fg white
set-option -g status-left-length 40
set-option -g pane-active-border-fg green
set-option -g pane-active-border-bg black
set-option -g pane-border-fg white
set-option -g pane-border-bg black
set-option -g message-fg black
set-option -g message-bg green
set-option -g default-command "reattach-to-user-namespace -l zsh"
#setw -g mode-bg black
setw -g window-status-bg black
setw -g window-status-current-fg green
#setw -g window-status-alert-attr default
#setw -g window-status-alert-fg yellow
set -g status-left '#[fg=red]#H#[fg=green]:#[fg=white]#S#[fg=green]][#[default]'
# set -g status-right '#[fg=green]][#[fg=white] #T #[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default]'
set -g status-right '#[fg=green]][#[fg=blue]%Y-%m-%d #[fg=white]%H:%M#[default]'
set -g history-limit 4096
# mouse can be used to select panes
set-option -g mouse-select-pane on
# mouse can be used to select windows (by clicking in the status bar)
set-option -g mouse-select-window on
# mouse can be used to resize panes (by dragging dividers)
set-option -g mouse-resize-pane on
# not really sure what this does, but with it, the scrollwheel works inside Vim
set-option -g mouse-utf8 on
# allow mouse to enter copy mode and initiate selection
set-window-option -g mode-mouse on
# I originally had this as screen-256color, but this works
# out-of-the-box in more places
set -g default-terminal "screen"
set -g terminal-overrides "xterm*:XT:smcup@:rmcup@:kUP5=\eOA:kDN5=\eOB:kLFT5=\eOD:kRIT5=\eOC"
set -g terminal-overrides 'screen*:smcup@:rmcup@' # Handle mouse to vim
# allow mouse to enter copy mode and initiate selection
#setw -g mode-mouse on
set -g default-terminal "screen-256color"
# `+r reloads the configuration, handy
bind r source-file ~/.tmux.conf