#Use 256 color terminal
set -g default-terminal tmux-256color
#Count windows from 1
set -g base-index 1
#Don't detach client when session is destroyed, switch to any other sessions
set -g detach-on-destroy off
# remap prefix to Control + a
set -g prefix C-a
set -g prefix2 C-b
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
unbind C-b
# bind 'C-a 0 to switch to window 10'
bind -T prefix 0 select-window -t :=10
#hardstatus/titles on
set -g set-titles on
set -g set-titles-string "#S@#H #I:#W"
#set -g set-titles-string "#S:#I:#W - \"#T\" #{session_alerts}" #DEFAULT SETTING
# #S name of session
# #I index of window
# #W Name of window
# #T Title of pane
# #H Hostname
#Status bar left
set -g status-left "#S@#H "
set -g status-left-length 20
set -g status-left-style bg=black,fg=white,dim
#Status bar right
#set -g status-right " %a %e/%m/%y %k:%M"
set -g status-right " %a %e/%m/%y %H#[blink]:#[default]%M"
set -g status-right-length 19
#set -g status-right-style bg=black,fg=white,dim
#Status bar centre
set -g status-justify centre
set -g status-style "fg=green"
set -g window-status-format '#[reverse,dim]#I#[noreverse,nodim]#W'
set -g window-status-current-style "bg=magenta,fg=black"
set -g window-status-current-format '#[reverse]#I#[noreverse]#W'
#automatically try to rename windows to current command
set -g automatic-rename on
set -g automatic-rename-format "#{pane_current_command}"
#Blink background windows when a bell happens
set -g window-status-bell-style blink
#set -g window-status-bell-bg green
#set -g window-status-bell-fg black
#Let us knew when a bell happens (for computers with no soundcard)
#set -g visual-activity both
#set -g visual-bell both
#How long to display the status messages (including bell message)
#set -g display-time 0