Source

dotfiles / .tmux.conf

# ` prefix key
set-option -g prefix `
unbind-key C-b
bind-key ` send-prefix
bind-key r respawn-window

bind-key Space next-window
bind-key BSpace previous-window
bind-key o last-window
bind-key k kill-window

# a-la defzombie. bad behavior though, can't tell that it's dead.
set-option -g set-remain-on-exit on
set-option -g default-shell /usr/bin/zsh

# no auto-rename
set-window-option -g automatic-rename off

# status stuff
# http://blog.hawkhost.com/2010/07/02/tmux-%e2%80%93-the-terminal-multiplexer-part-2/
set-option -g status-bg white
set-option -g status-fg black
set-option -g status-left '#S'
set-option -g status-right ''


# main session - mostly shells
# runs maximized on desktop 0
new-session -d -s 0
set-environment -t 0 TMUX_SESSION main
new-window -t 0:0 -k -d
new-window -t 0:8 -d -n super '~/var/python/environments/propane/bin/supervisord -n -c ~/.config/supervisord.conf'
new-window -t 0:7 -d -n syn 'synergys -f'

new-session -d -t 0 -s 1
set-environment -t 1 TMUX_SESSION main

new-session -d -s fit0
set-environment -t fit0 TMUX_SESSION fitocracy
set-option -t fit0 default-path /home/akg/srv/fitocracy/Fitocracy
new-window -t fit0:0 -k -n fit
new-window -t fit0:1 -k -n ack
new-window -t fit0:2 -k -n git
new-window -t fit0:3 -k -n test
new-window -t fit0:4 -k -n deploy
new-window -t fit0:9 -k -n 8000
new-session -d -t fit0 -s fit1
set-environment -t fit1 TMUX_SESSION fitocracy
set-option -t fit1 default-path /home/akg/srv/fitocracy/Fitocracy


# # tops: iotop, htop, maybe others
new-session -d -s top htop
set-environment -t top TMUX_SESSION top
# kill-window -t top:0
# move-window -s top:1 -t top:0


# # link iotop/htop to main sesison
link-window -s top:htop -t 0:9