set-option -g default-command "reattach-to-user-namespace -l zsh"
# mouse mode
set -g mouse on
# rebind prefix
unbind C-b
set-option -g prefix M-a
setw -g mode-keys vi
# split window like vim
# vim's defination of a horizontal/vertical split is revised from tumx's
bind - split-window -h
bind | split-window -v
unbind '"'
unbind %
# move arount panes wiht hjkl, as one would in vim after C-w
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes like vim
# feel free to change the "1" to however many lines you want to resize by,
# only one at a time can be slow
bind < resize-pane -L 10
bind > resize-pane -R 10
bind - resize-pane -D 10
bind + resize-pane -U 10
# bind : to command-prompt like vim
# this is the default in tmux already
bind : command-prompt
# new window in current path
bind c new-window -c "#{pane_current_path}"
# reload config
unbind r
bind r source-file ~/.tmux.conf
set-option -g allow-rename off
set -g base-index 1
# Automatically set window title
setw -g automatic-rename on
set -g set-titles on
set -g status-left-length 20
# THEME
# set -g status-bg black
# set -g status-fg white
# set -g window-status-current-bg white
# set -g window-status-current-fg black
# set -g status-interval 60
# set -g status-left-length 30
# set -g status-left '#[fg=green](#S) #(whoami)'
# set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/ladavg)#[default] #[fg=white]%H:%M#[default]'
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'seebi/tmux-colors-solarized'
run '~/.tmux/plugins/tpm/tpm'