#set-option -g default-shell /bin/zsh 

# Use Ctrl-a, like Screen
set -g prefix C-a
unbind C-b


# Start counting from 1 for windows and panes
set -g base-index 1
set -g pane-base-index 1

bind C-a send-prefix

bind | split-window -h
bind - split-window -v

bind e detach
bind x kill-pane
bind & kill-window

set-option -g allow-rename off

#vim moves
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

bind r source-file ~/.tmux.conf \; display "Configuration reloaded!"

#Toogle
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+

#set -g mouse-select-pane on
#set -g mouse-resize-pane on
#set -g mouse-select-pane on
#set -g mode-mouse on

set -g monitor-activity off
set -g visual-activity off

bind-key * list-clients

setw -g automatic-rename
set-option -g set-titles on

set -g history-limit 10000

set -g status-keys vi
set -g mode-keys vi

set -sg escape-time 0

unbind q
bind q confirm kill-session
bind Q confirm kill-server

unbind d
bind -r d resize-pane -D 5
bind -r u resize-pane -U 5

#set -g status-utf8 on
set -g status-right "#S:#I.#P"
set -g status-justify left
set-option -g status-position top

if-shell "if [[ `tmux -V | cut -d' ' -f2` -lt 2.0 ]]; then true; else false; fi" \
    'set -g status-utf8 on; \
    set -g mouse-select-pane on; \
    set -g mouse-resize-pane on; \
    set -g mouse-select-pane on; \
    set -g mode-mouse on;'

#
## THEME
##
#
## Colors make life better
set -g default-terminal "screen-256color"
#
set -g status-fg colour253 # lightgrey
set -g status-bg colour234 # darkgrey

## Status bar info
#set -g status-utf8 on
set -g status-left "#[fg=red]($SERVER)⚡ [#I]"
set -g status-right "[#I] #[fg=yellow]#S:#I:#P #[fg=green]%H:%M %d-%h"
set -g status-justify left
set-option -g status-position top

