set -g default-terminal "xterm-256color" set-option -ga terminal-overrides ",xterm-256color:Tc" set -ga terminal-overrides ",xterm-256color:Tc" set -g extended-keys on set -g extended-keys-format csi-u # action key unbind C-b set -g prefix C-q set-option -g repeat-time 0 set -g @tpm-clean 'u' bind-key x kill-pane # skip "kill-pane 1? (y/n)" prompt set -g detach-on-destroy off # don't exit from tmux when closing a session # Plugins set -g @tpm_plugins ' tmux-plugins/tpm tmux-plugins/tmux-sensible tmux-plugins/tmux-resurrect christoomey/vim-tmux-navigator ' bind-key "T" display-popup -B -h 100% -w 100% -E "sesh picker -Hds" bind-key b set-option status set-window-option -g mode-keys vi # turn on mouse set -g mouse on #bind t send-key C-t # Reload settings bind r source-file ~/.tmux.conf \; display "Reloaded!" # Open current directory bind o run-shell "open #{pane_current_path}" bind -r e kill-pane -a # vim-like pane switching bind -r k select-pane -U bind -r j select-pane -D bind -r h select-pane -L bind -r l select-pane -R # Moving window bind-key -n C-S-Left swap-window -t -1 \; previous-window bind-key -n C-S-Right swap-window -t +1 \; next-window # Resizing pane bind -r K resize-pane -U 5 bind -r J resize-pane -D 5 bind -r H resize-pane -L 5 bind -r L resize-pane -R 5 # Start windows and panes at 1, not 0 set -g base-index 1 set -g pane-base-index 1 set-window-option -g pane-base-index 1 set-option -g renumber-windows on # Opens split panes in current path bind '"' split-window -v -c "#{pan_current_path}" bind % split-window -h -c "#{pane_current_path}" #set-option utf8-default on #set-option -g mouse-select-pane set-window-option -g mode-keys vi #set-window-option -g utf8 on # look'n feel set-option -g status-position "top" set-option -g status-style bg=default,fg=default set-option -g status-justify centre set-option -g status-left '#[bg=default,fg=default,bold]#{?client_prefix,, 󰘧 }#[bg=default,fg=colour3,bold]#{?client_prefix, 󰘧 ,}' set-option -g status-right '#S' set-option -g window-status-format '#[bg=default,fg=colour2] 󰝣 #W ' set-option -g window-status-current-format '#[bg=default,fg=colour3] 󰝤 #W#{?window_zoomed_flag,  , }' run '~/.tmux/plugins/tpm/tpm'