Skip to content

Instantly share code, notes, and snippets.

@brilliant-ember
Created September 10, 2020 14:30
Show Gist options
  • Save brilliant-ember/664a21c5b6afc7505fe62ad25f3568e9 to your computer and use it in GitHub Desktop.
Save brilliant-ember/664a21c5b6afc7505fe62ad25f3568e9 to your computer and use it in GitHub Desktop.
My Linux tmux config, for easy copy-paste between tmux and the computer, and using vim mode, and my preferred color. You have to have xclip installed
# paste all of this here: ~/.tmux.conf
# for copying to sys clipboard
bind -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
bind -T copy-mode-vi C-j send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary | xclip -i -selection clipboard"
#general other stuff
set -g default-terminal "xterm-256color"
set -g mouse on
set-window-option -g mode-keys vi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment