# NOTE: First of all install TPM # git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm # Set the base index for windows to 1 instead of 0. set -g base-index 1 # Set the base index for panes to 1 instead of 0. set -g pane-base-index 1 # Vi-mode set -g mode-keys vi # Enable activity alerts. set -g visual-activity off # Renumber windows when a window is closed set -g renumber-windows on # => Theme set -g status-style fg=white,bg=black set -g window-status-current-style fg=black,bg=white,bold set -g window-status-style fg=colour244,bg=default set -g window-status-current-style fg=colour166,bg=default set -g message-style fg=colour166,bg=colour235 # set -g window-status-format " #W " # set -g window-status-current-format " #W " set -g window-status-format " ━━━ " set -g window-status-current-format " ━━━ " set -g status-left '' set -g status-right '' set -g status-justify centre # => Bindings # Kill pane without confirmation bind-key x kill-pane # Painless copying with tmux-yank unbind [ bind Escape copy-mode setw -g mode-keys vi bind-key Space run-shell "tmux list-sessions -F \"##S\" | fzf-tmux | xargs tmux switch -t" unbind-key -T copy-mode-vi v bind-key -T copy-mode-vi 'v' send -X begin-selection # Begin selection in copy mode. bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle # Begin selection in copy mode. bind-key -T copy-mode-vi 'y' send -X copy-selection # Yank selection in copy mode. bind-key -T copy-mode-vi 'K' send -X halfpage-up bind-key -T copy-mode-vi 'J' send -X halfpage-down # => Plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' # Depends on 'urlview' set -g @plugin 'tmux-plugins/tmux-urlview' set -g @plugin 'tmux-plugins/tmux-yank' # Default keysbindings for panes set -g @plugin 'tmux-plugins/tmux-pain-control' # If run as "tmux attach", create a session if one does not already exist new-session -A -s default # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm'