# NOTE: First of all install TPM # git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm set-option -g default-command "reattach-to-user-namespace -l bash" # 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. setw -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-bg black set -g status-fg white set -g window-status-current-bg white set -g window-status-current-fg black set -g window-status-current-attr bold # Default window title colors setw -g window-status-fg colour244 #base0 setw -g window-status-bg default # Active window title colors setw -g window-status-current-fg colour166 #orange setw -g window-status-current-bg default # Message text set -g message-bg colour235 #base02 set -g message-fg colour166 #orange set -g window-status-format " #W " set -g window-status-current-format " #W " set -g status-left '' set -g status-right '' set -g status-justify centre # => Bindings # Kill pane without confirmation bind-key x kill-pane bind-key \ split-window -h bind-key - split-window -v # Painless copying with tmux-yank unbind [ bind Escape copy-mode setw -g mode-keys vi 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-copycat' set -g @plugin 'tmux-plugins/tmux-yank' set -g @plugin 'tmux-plugins/tmux-open' # 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'