1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-05 16:18:01 +00:00

Add tmux in your tmux as a zsh til.

This commit is contained in:
jbranchaud
2015-05-14 09:03:10 -05:00
parent a3f0b16d7c
commit 89815d9c2a
2 changed files with 13 additions and 0 deletions

View File

@@ -111,6 +111,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
- [Create A File Descriptor with Process Substitution](zsh/create-a-file-descriptor-with-process-substitution.md)
- [Killing A Frozen SSH Session](zsh/killing-a-frozen-ssh-session.md)
- [Search History](zsh/search-history.md)
- [tmux in your tmux](zsh/tmux-in-your-tmux.md)
- [Watch This Run Repeatedly](zsh/watch-this-run-repeatedly.md)
- [Where Are The Binaries?](zsh/where-are-the-binaries.md)

12
zsh/tmux-in-your-tmux.md Normal file
View File

@@ -0,0 +1,12 @@
# tmux in your tmux
If you are running tmux locally and you shell into another machine to
access tmux remotely, you will suddenly find yourself in tmux inception.
You will have a tmux instance running within your local tmux instance. If
you have the same prefix key set for both, then you may be wondering how
you can send a tmux command to the *inner* tmux instance.
If you press your prefix twice (e.g. `<C-a> <C-a>`), then the second prefix
will be sent to the inner tmux instance which will then be listening for
the rest of your command. So, to open a new window within the inner tmux
instance, you can hit `<C-a> <C-a> c`.