Skip to content

Instantly share code, notes, and snippets.

@psyhtest
Last active February 14, 2022 12:24
Show Gist options
  • Save psyhtest/44bfe16e55003dcc4e080b0dfa6b4840 to your computer and use it in GitHub Desktop.
Save psyhtest/44bfe16e55003dcc4e080b0dfa6b4840 to your computer and use it in GitHub Desktop.
~/.tmux.conf with prefix remapping, big history and plugins
# Remap prefix to Ctrl+s.
set -g prefix C-s
unbind C-b
bind C-s send-prefix
# Increase history limit.
set-option -g history-limit 100000
# List of plugins.
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]/user/plugin'
# set -g @plugin '[email protected]/user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf).
run '~/.tmux/plugins/tpm/tpm'
@psyhtest
Copy link
Author

To install tmux-resurrect, first clone:

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

then run tmux and press Ctrl-s Shift-i.

@psyhtest
Copy link
Author

Save this file as ~/.tmux.conf:

wget https://gist.githubusercontent.com/psyhtest/44bfe16e55003dcc4e080b0dfa6b4840/raw/5f85302a547db773c72d515b25384aa9bee3c095/gistfile1.txt -O ~/.tmux.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment