Tmux

.tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Solarized colorscheme/theme from 
#source-file git/github/tmux-colors-solarized/tmuxcolors.conf

# Report that we can handle 256 colors
set -g default-terminal "screen-256color"

# Rebind prefix to avoid conflicts
unbind C-b
set -g prefix C-a
#bind C-q send-prefix


# OhMyZsh ftw!
set -g default-command /bin/zsh
set -g default-shell /bin/zsh

# I'm a Vim user, this makes navigation easier
setw -g mode-keys vi
unbind-key j
bind-key j select-pane -D
unbind-key k
bind-key k select-pane -U
unbind-key h
bind-key h select-pane -L
unbind-key l
bind-key l select-pane -R

# '0' is at the wrong end of the keyboard
set -g base-index 1

# Just click it
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
set-option -g mouse-resize-pane on

# Scroll your way into copy mode (scrollback buffer)
# and select text for copying with the mouse
setw -g mode-mouse on
set -g terminal-overrides 'xterm*:smcup@:rmcup@'

# I like to give my windows descriptive names
set-window-option -g automatic-rename off

# Toggle sending keystrokes to all panes in a window
bind-key a set-window-option synchronize-panes

# Don't lose track of SSH_AGENT etc. from parent environment.
set -g update-environment -r

# CPU/MEM info
set -g status-interval 2
set -g status-left "#S #[fg=green,bg=black]#(tmux-mem-cpu-load --colors 2)#[default]"