Last active
May 12, 2021 23:38
-
-
Save DoomHammer/aec9b602633b01aa42a4aac43820792c to your computer and use it in GitHub Desktop.
An example Tmux configuration with plugins
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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