Skip to content

Instantly share code, notes, and snippets.

@gnarula
Last active September 14, 2018 10:01
Show Gist options
  • Save gnarula/3db3da6f3f7cb3571cfcb842caf7a92a to your computer and use it in GitHub Desktop.
Save gnarula/3db3da6f3f7cb3571cfcb842caf7a92a to your computer and use it in GitHub Desktop.
Tmux configuration
unbind C-b
set -g prefix C-a
bind C-a send-prefix
set-option -ga terminal-overrides ",xterm-256color:Tc"
set-option -g default-terminal "xterm-256color"
# Start windows and panes at index 1
set -g base-index 1
setw -g pane-base-index 1
# Mouse mode
set -g mouse on
# Vi mode
set-window-option -g mode-keys vi
# Split panes using | and -
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'odedlaz/tmux-onedark-theme'
set -g @plugin 'christoomey/vim-tmux-navigator'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment