chore(kb/tmux): create dedicated sessions

This commit is contained in:
Michele Cereda
2024-04-01 19:08:58 +02:00
parent 1efa43de66
commit 7a43cd86ec

View File

@@ -28,6 +28,12 @@ set -g renumber-windows on # renumber all windows when a window is closed
https://github.com/tmux/tmux/wiki/
```sh
# Dedicate sessions to commands.
# Attach to the session if it already exists, or create it otherwise.
tmux new-session -As 'gitlab-upgrade' "dnf update 'gitlab-ee'"
```
```sh
# Operate on a background session from another one.
tmux new-session -d -S 'session-name'