set -s escape-time 0 set -g status-interval 0 # put status bar on the top set-option -g status-position top # bind to M-w unbind C-b set-option -g prefix M-w bind-key M-w send-prefix bind -n M-h select-pane -L bind -n M-l select-pane -R bind -n M-k select-pane -U bind -n M-j select-pane -D # pane movement bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'" bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'" # rebinding unbind C-up unbind C-Down unbind C-Left unbind C-Right unbind n unbind p unbind 0 unbind 1 unbind 2 unbind 3 unbind 4 unbind 5 unbind 6 unbind 7 unbind 8 unbind 9 #uiop for resizing bind -n M-H resize-pane -L bind -n M-J resize-pane -D bind -n M-K resize-pane -U bind -n M-L resize-pane -R bind -n M-n next-window bind -n M-p previous-window bind -n M-0 select-window -t 0 bind -n M-1 select-window -t 1 bind -n M-2 select-window -t 2 bind -n M-3 select-window -t 3 bind -n M-4 select-window -t 4 bind -n M-5 select-window -t 5 bind -n M-6 select-window -t 6 bind -n M-7 select-window -t 7 bind -n M-8 select-window -t 8 bind -n M-9 select-window -t 9 # reload config bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded." # mouse set -g mouse on # manual rename with leader + , # don't rename windows automatically set-option -g allow-rename off # unbind uncessary: unbind C-o unbind C-z unbind M-Up unbind M-Down unbind M-Left unbind M-Right unbind S-Up unbind S-Down unbind S-Left unbind S-Right # color set -g default-terminal "tmux-256color" set -ag terminal-overrides ",xterm-256color:RGB" # Status bar set -g status on set -g status-interval 1 set -g status-justify centre # Careful! It is spelled centre not center. set -g status-style fg=white,bg=darkblue # Highlight the current window. setw -g window-status-current-style fg=white,bg=default,bright