snippets/old_snippets/tmux-new.en.md

21 lines
749 B
Markdown

---
title: "mutliplex all the shells"
date: 2020-01-11T04:59:56+01:00
draft: false
snippet_types: ["tmux"]
---
```shell
$ tmux new -s 'example_session_name'
```
Creates a new tmux session with the name 'example_session_name' which is very powerful and will
exist even if you close out of the terminal.
Once you launch use **\<Ctrl + ">** to split the window horizontally or **\<Ctrl + %>** for
vertically split and moving between windows with **\<Ctrl - Vim_Direction>**
You can detach and go back to shell at any time with **\<Ctrl + d>** then reattach later with
**tmux new-s 'example_session_name'**. If you forget the name a simple **tmux ls** show running
sessions.
[cheat sheet](https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History)