Skip to content

Instantly share code, notes, and snippets.

@DoomHammer
Last active May 12, 2021 23:38
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DoomHammer/aec9b602633b01aa42a4aac43820792c to your computer and use it in GitHub Desktop.
Save DoomHammer/aec9b602633b01aa42a4aac43820792c to your computer and use it in GitHub Desktop.
An example Tmux configuration with plugins
## Prefix like in screen
set -g prefix 'C-a'
## Use xterm keys (makes eg. Ctrl+Arrow navigate words)
set-window-option -g xterm-keys on
## List of plugins
# For this to work you need to install https://github.com/tmux-plugins/tpm
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Those two allow continuous saving and restoring of tmux sessions
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Pomodoro timer for tmux
set -g @plugin 'justincampbell/tmux-pomodoro'
## Plugin configuration
set -g @continuum-restore 'on'
set -g @resurrect-capture-pane-contents 'on'
set -g @pomodoro-start-key 'o'
## A bit more space in right status bar
set -g status-right-length 50
## Rename windows to fit current application
setw -g automatic-rename on
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment