Skip to content

Instantly share code, notes, and snippets.

@0verflowme
Last active September 16, 2021 18:33
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 0verflowme/51ebbda30c3e9829cdd4a6377aaae0d9 to your computer and use it in GitHub Desktop.
Save 0verflowme/51ebbda30c3e9829cdd4a6377aaae0d9 to your computer and use it in GitHub Desktop.
set -g default-terminal "screen-256color" # colors!
setw -g xterm-keys on
set -s escape-time 10 # faster command sequences
set -sg repeat-time 600 # increase repeat timeout
set -s focus-events on
set -g prefix2 C-a # GNU-Screen compatible prefix
bind C-a send-prefix -2
set -q -g status-utf8 on # expect UTF-8 (tmux < 2.2)
setw -q -g utf8 on
set -g history-limit 5000 # boost history
# edit configuration
bind e new-window -n "~/.tmux.conf.local" "sh -c '\${EDITOR:-vim} ~/.tmux.conf.local && tmux source ~/.tmux.conf && tmux display \"~/.tmux.conf sourced\"'"
# reload configuration
bind r source-file ~/.tmux.conf \; display '~/.tmux.conf sourced'
set -g mode-keys vi
bind s split-window -h
#Customs
set-option -g mouse on
set-option -s set-clipboard off
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -se c -i"
#Tmux Save and Restore
source-file "${HOME}/.tmux-themepack/powerline/default/green.tmuxtheme"
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
#Theme
set -g @plugin 'jimeh/tmux-themepack'
#Cursor Support
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
#logging
set -g @plugin 'tmux-plugins/tmux-logging'
set -g @plugin 'xamut/tmux-network-bandwidth'
set -g status-right '#(gitmux "#{pane_current_path}")'
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment