The default <prefix>+L
command will "Switch the attached client back to the last session." However, if you close a session while detach-on-destroy off
is set, the last session will not be found. To fix this, I have a sesh last
command that will always switch the client to the second to last session that has been attached.
Add the following to your tmux.conf
to overwrite the default last-session
command:
bind -N "last-session (via sesh) " L run-shell "sesh-dev last"
WARNING: This is a brand new feature and is prone to have some slight changes in behavior. I'll be sure to post those changes here.
What's Changed
- Add Last Command by @joshmedeski in #165
Full Changelog: v2.1.2...v2.2.0