Skip to content

Instantly share code, notes, and snippets.

@MadebyAe
Created June 10, 2017 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MadebyAe/9326060b63aef4c620c3139dd7728ce3 to your computer and use it in GitHub Desktop.
Save MadebyAe/9326060b63aef4c620c3139dd7728ce3 to your computer and use it in GitHub Desktop.
Personal tmux Config
# remap prefix to Control + a
set -g prefix C-a
# bind 'C-a C-a' to type 'C-a'
bind C-a send-prefix
unbind C-b
# bind clear scrollbar
bind -n C-k clear-history
# clipboard
setw -g mode-keys vi
bind-key -n C-k send-keys -R \; clear-history
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
bind-key -Tcopy-mode-vi 'y' send -X copy-pipe "reattach-to-user-namespace pbcopy"
# status line
set -g status-justify left
set -g status-bg default
set -g status-fg colour37
set -g status-interval 2
# border colours
set -g pane-border-fg colour240
set -g pane-active-border-fg colour37
# Mouse support in Tmux HEAD
set-option -g -q mouse on
# Start copy mode when scrolling up
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -M'"
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment