diff --git a/README.md b/README.md index cf3bf1c..b49fe47 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ pairing with smart people at Hashrocket. For a steady stream of TILs, [sign up for my newsletter](https://tinyletter.com/jbranchaud). -_981 TILs and counting..._ +_982 TILs and counting..._ --- @@ -886,6 +886,7 @@ _981 TILs and counting..._ - [Swap Split Panes](tmux/swap-split-panes.md) - [Switch To A Specific Session And Window](tmux/switch-to-a-specific-session-and-window.md) - [tmux in your tmux](tmux/tmux-in-your-tmux.md) +- [Toggle Between Two Common Sessions](tmux/toggle-between-two-common-sessions.md) ### Unix diff --git a/tmux/toggle-between-two-common-sessions.md b/tmux/toggle-between-two-common-sessions.md new file mode 100644 index 0000000..7adb316 --- /dev/null +++ b/tmux/toggle-between-two-common-sessions.md @@ -0,0 +1,17 @@ +# Toggle Between Two Common Sessions + +With certain projects, such as projects that involve separate frontend and +backend codebases, I use a separate tmux session for each. This means that for +certain tasks and features I find myself flipping back and forth between them +constantly. + +This can get tedious with an approach like ` s` where you then have to +find and select the other session from the list. + +A more efficient alternative is ` L` -- this takes you to the last +session. So, if you are in the `backend` session and had previously been in the +`frontend` session, then hitting ` L` will immediately place you in +`frontend`. Hitting that exact same binding a second time will take you right +back to `backend`. + +See `man tmux` for more details.