Skip to content

Instantly share code, notes, and snippets.

@thierrymarianne
Created August 19, 2022 10:19
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 thierrymarianne/095cbd9bceb761423bbeeb71123fb841 to your computer and use it in GitHub Desktop.
Save thierrymarianne/095cbd9bceb761423bbeeb71123fb841 to your computer and use it in GitHub Desktop.
An example of tmux configuration
set-option -g default-shell /bin/zsh
# @see https://github.com/lucaswerkmeister/home/commit/96b02b00a3dececf2271f73a7188a2c53b4fbc0c
set-option -g update-environment[0] GNOME_TERMINAL_SCREEN
set-option -g update-environment[1] GNOME_TERMINAL_SERVICE
setw -g mode-keys vi
setw -g aggressive-resize on
set-window-option -g xterm-keys on
bind [ copy-mode
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-selection
bind -T copy-mode-vi V send-keys -X rectangle-toggle
bind -T copy-mode-vi y send -X copy-pipe "xclip -i -sel p -f | copyq add - ; copyq read 0 | xclip -sel clip" \; display-message "copied to system clipboard"
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard"
bind ] paste-buffer
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @pl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment