# enable italics set -g default-terminal "tmux-256color" set -as terminal-overrides ',xterm*:sitm=\E[3m' # set prefix unbind C-b set -g prefix C-a bind-key C-a send-prefix # encable shift-arrow set-window-option -g xterm-keys on # split panes with | and _ bind | split-window -h bind _ split-window -v unbind '"' unbind % bind r source-file ~/.tmux.conf # switch panes with Alt+arrow bind -n M-Left select-pane -L bind -n M-Right select-pane -R bind -n M-Up select-pane -U bind -n M-Down select-pane -D # swap panes with Ctrl+Alt+<> // not working bind -n C-, swap-pane -U bind -n C-. swap-pane -D # resize panes with Shift+Alt+arrow bind -n S-M-Left resize-pane -L bind -n S-M-Right resize-pane -R bind -n S-M-Up resize-pane -U bind -n S-M-Down resize-pane -D # tab navigation bind -n M-, previous-window bind -n M-. next-window bind n new-window #bind , rename-window #bind f find-window set -g mouse on # copy/paste system clipboard bind y run 'tmux save-buffer - | xclip -i -sel clipboard' bind p run "tmux set-buffer \"$(xclip -o -sel clioboard)\"; tmux paste-buffer" # rename windows witn C-a ',' # none # key config set -s escape-time 10 set -s focus-events on set -g history-limit 5000 set -g base-index 1 # start windows at 1 set -g pane-base-index 1 # start panes at 1 set -g automatic-rename on set -g renumber-windows on set -g set-titles on set -g display-panes-time 800 set -g display-time 1000 set -g status-interval 1 # Look and feel set-option -g status-style fg=yellow,bg=default set-option -g message-style fg=blue,bg=default set-option -g status-justify centre set-option -g status-right ' %I:%M' set-option -g status-left ' #S ' set-option -g window-status-style fg=yellow,bg=default set-option -g window-status-format ' #W#[fg=blue]#F ' set-option -g window-status-current-style fg=red,bg=default set-window-option -g window-status-current-format '#W#[fg=blue]'