Skip to content

Commit

Permalink
Add the 'Attach here and now' command for screen and tmux. (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
extSunset committed Aug 22, 2023
1 parent a02d68e commit d7a7ae8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
12 changes: 12 additions & 0 deletions docs/protocol/pulsar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,11 @@ Ctrl+b d OR ⌘+b d (Mac)
$ tmux -S farming attach
```

* Alternatively, you can use the following single command to both create (if not exists already) and attach to a session:
```bash
$ tmux new-session -A -D -s farming
```

* To delete farming session
```bash
$ tmux kill-session -t farming
Expand Down Expand Up @@ -507,10 +512,17 @@ Ctrl+d a OR ⌘+d a (Mac)
```bash
$ screen -r farming
```

* Alternatively, you can use the following single command to both create (if not exists already) and attach to a session:
```bash
$ screen -D -R -S farming
```

* To delete farming session
```bash
$ screen -S farming -X quit
```

</TabItem>
</Tabs>

Expand Down
13 changes: 12 additions & 1 deletion versioned_docs/version-latest/protocol/pulsar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,6 @@ If you want to learn more about Tmux and its options check out their Repo [here]
$ tmux -S farming
```


* Move process to background by detaching
```bash
Ctrl+b d OR ⌘+b d (Mac)
Expand All @@ -479,6 +478,11 @@ Ctrl+b d OR ⌘+b d (Mac)
$ tmux -S farming attach
```

* Alternatively, you can use the following single command to both create (if not exists already) and attach to a session:
```bash
$ tmux new-session -A -D -s farming
```

* To delete farming session
```bash
$ tmux kill-session -t farming
Expand Down Expand Up @@ -507,10 +511,17 @@ Ctrl+d a OR ⌘+d a (Mac)
```bash
$ screen -r farming
```

* Alternatively, you can use the following single command to both create (if not exists already) and attach to a session:
```bash
$ screen -D -R -S farming
```

* To delete farming session
```bash
$ screen -S farming -X quit
```

</TabItem>
</Tabs>

Expand Down

0 comments on commit d7a7ae8

Please sign in to comment.