Skip to content

Instantly share code, notes, and snippets.

@razimantv
Last active April 10, 2017 20:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save razimantv/fcd0900a7632fd4447f7 to your computer and use it in GitHub Desktop.
Save razimantv/fcd0900a7632fd4447f7 to your computer and use it in GitHub Desktop.
Tmux configuration
set -g default-terminal "screen-256color"
set -g update-environment "TERM_PROGRAM"
bind C-y run "tmux save-buffer - | xclip -selection clipboard"
set -g mouse on
# Toggle mouse on with ^B m
bind m \
set -g mouse on \;\
display 'Mouse: ON'
# Toggle mouse off with ^B M
bind M \
set -g mouse off \;\
display 'Mouse: OFF'
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
set -g @resurrect-strategy-vim 'session'
set -g @resurrect-processes 'ranger htop "bash -i -c cowfortune" "~vlc -I ncurses -ZL ."'
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'jimeh/tmux-themepack'
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment