Skip to content

Instantly share code, notes, and snippets.

@Sam-Lane
Created February 3, 2020 09:14
Show Gist options
  • Save Sam-Lane/34562a7048e1f41bf26f416eb7a6b0e5 to your computer and use it in GitHub Desktop.
Save Sam-Lane/34562a7048e1f41bf26f416eb7a6b0e5 to your computer and use it in GitHub Desktop.
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# Enable mouse mode (tmux 3.1 and above)
set -g mouse on
# switch panes using Alt-arrow without prefix
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
#switch to next window
#bind Space next-window
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Start window numbering at 1
set -g base-index 1
# split panes using | and -
bind \ split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
unbind '"'
unbind %
#status line stuff
bind a set -g status
#theme
set -g @plugin 'sei40kr/tmux-airline-dracula'
set -g @plugin 'robhurring/tmux-spotify'
# fixes terminal colours after ssh
set -g default-terminal screen-256color
# add vim bindings
set-window-option -g mode-keys vi
# 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