diff --git a/README.md b/README.md index f070bf6..15f017d 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ variety of languages and technologies. These are things that don't really warrant a full blog post. These are mostly things I learn by pairing with smart people at [Hashrocket](http://hashrocket.com/). -_454 TILs and counting..._ +_455 TILs and counting..._ --- @@ -362,6 +362,7 @@ _454 TILs and counting..._ - [Adjusting Window Pane Size](tmux/adjusting-window-pane-size.md) - [Create A Named tmux Session](tmux/create-a-named-tmux-session.md) +- [Create A New Session In A New Server](tmux/create-a-new-session-in-a-new-server.md) - [Cycle Through Layouts](tmux/cycle-through-layouts.md) - [Enabling Vi Mode](tmux/enabling-vi-mode.md) - [Jumping Between Sessions](tmux/jumping-between-sessions.md) diff --git a/tmux/create-a-new-session-in-a-new-server.md b/tmux/create-a-new-session-in-a-new-server.md new file mode 100644 index 0000000..772e61e --- /dev/null +++ b/tmux/create-a-new-session-in-a-new-server.md @@ -0,0 +1,22 @@ +# Create A New Session In A New Server + +Any tmux command will, by default, be invoked against the `default` +server. You can instruct tmux to perform commands against a different server +with the `-L` flag and the name of the server. + +If you name a server that doesn't already exist, tmux will create and start +that server for you. So, if you want to start a new session in a new server, +just run a command like the following: + +```bash +$ tmux -L pokemon_server new-session -s pokedex +``` + +If you are to detach from this session, you will need to specify the name of +the server in order to attach again: + +```bash +$ tmux -L pokemon_server attach -t pokedex +``` + +See `man tmux` for more details.