You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use tmux-resurrect only and set a bash alias to open tmux and restore the last session at the same time.
.tmux.config
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
As you can see, tmux-continuum is not installed.
Make sure to have a saved environment first with prefix ctrl-s before exiting tmux and setting the alias up.
.bash_aliases
# open tmux and automatically restore the last session
alias coding="
tmux new-session\; \
run-shell ~/.tmux/plugins/tmux-resurrect/scripts/restore.sh \;"
You may put this in either .bashrc or .bash_aliases (recommended).
You can check where the restore.sh file is by pasting tmux list-keys | grep 'prefix\s*C\-r' in your terminal.
The
tmux_resurrect_20211122T134927.txt
contains this:The text was updated successfully, but these errors were encountered: