Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
set-option -g prefix `
set -g base-index 1
# send `
bind-key a send-prefix
# start window index of 1 instead of 0
set-option -g base-index 1
# Start panes at 1 instead of 0. tmux 1.6 only
setw -g pane-base-index 1
bind-key w choose-window -F "#{window_name}"
# UTF-8 character support in the status bar
set-option -g status-utf8 on
# Lowers the delay time between the prefix key and other keys - fixes pausing in vim
set-option -sg escape-time 1
# Kill window
bind-key D confirm kill-window
# When in Copy mode, act like vim
set-window-option -g mode-keys vi
# look good, but ensure your terminal emulator supports this.
# Recommend iTerm2 on OS X with the xterm-256 profile.
set -g default-terminal "screen"
set -g history-limit 5000
# # Set window notifications
setw -g monitor-activity on
set -g visual-activity on
# Styles the active pane border. Helps when you have
# more than two panes.
set-option -g pane-active-border-fg cyan
#set-option -g pane-active-border-bg yellow
# statusbar --------------------------------------------------------------
# # default statusbar colors
set-option -g status-fg white
set-option -g status-bg default
#set-option -g status-attr default
# # default window title colors
set-window-option -g window-status-fg default
set-window-option -g window-status-bg default
set-window-option -g window-status-attr dim
# # active window title colors
set-window-option -g window-status-current-fg green
set-window-option -g window-status-current-bg default
# set-window-option -g window-status-current-attr bright
# # command/message line colors
#set-option -g message-fg white
#set-option -g message-bg black
#set-option -g message-attr bright
# Time messages remain in the status bar. Lower this number
# if this is too distracting.
set-option -g display-time 4000
# Pipe the current pane to a log file with Shift-H - Press Shift-H again to stop.
bind-key H pipe-pane -o "cat >>$HOME/#W-tmux.log" \; display-message "Toggled logging to $HOME/#W-tmux.log"
# Sync panes - send what you're typing to other panes.
bind C-s set-window-option synchronize-panes
# set -g status-left '#[fg=red]#H#[default]'
set -g status-left '#[fg=red]>> '
# 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 status-right '#[fg=green]%H:%M#[default]'
set -g history-limit 100000
# Open windows at startup
#------------------
# Respawn windows when PANE IS DEAD
bind-key R respawn-window
# Do not close main windows after command die
set -g set-remain-on-exit on
# Create session named default in background with one window named local
new -d -s default -n local
neww -d -n iPy ipython
neww -d -n server1 "ssh root@server1.com"
neww -d -n coolserver "ssh root@server2.com"
# Other windows will close after command die as usual
set -u set-remain-on-exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.