krzysztof-w
12/21/2015 - 5:33 PM

My tmux config

My tmux config

# Use reattach-to-user-namespace so pbcopy/pbpaste work again.

# Use 256 color terminal
set-option -g default-terminal screen-256color

# Use C-t as my tmux prefix key
# set-option -g prefix C-t

# Other keybindings.
bind-key k kill-pane
bind-key r source-file ~/.tmux.conf \; display-message "Config reloaded..."
#bind-key '"' split-window -h
#bind-key % split-window

# I like screen's method of repeating the prefix key to switch
# back and forth between windows.
bind-key C-t last-window

# I want messages to be displayed long enough to read.
set-option -g display-time 2000

# Make it easy to open a new ssh window
bind-key S command-prompt "new-window -n %1 'ssh -oStrictHostKeyChecking=no %1'"
bind-key U command-prompt "new-window -n ubuntu@%1 'ssh -oStrictHostKeyChecking=no -l ubuntu %1'"
bind-key R command-prompt "new-window -n root@%1 'ssh -oStrictHostKeyChecking=no -l root %1'"
bind-key C-R respawn-window

# Make it easy to open a man page
bind-key / command-prompt "split-window -p 33 'man %1'"

# Pretty colors
source-file ~/zenburn.conf

# Layout
set-window-option -g aggressive-resize on

# Don't destroy windows on exit
set-window-option -g remain-on-exit on

# Easily move windows left and right
#bind-key Left swap-window -t -1
#bind-key Right swap-window -t +1