Spiced up .tmux.conf and updated README
This commit is contained in:
22
README.md
22
README.md
@@ -1,7 +1,6 @@
|
||||
---
|
||||
filename: README
|
||||
filecreated:
|
||||
fileupdated: 2024-03-21 14:22
|
||||
filecreated:
|
||||
fileupdated: 2025-04-16
|
||||
filetags: [readme]
|
||||
---
|
||||
|
||||
@@ -17,9 +16,7 @@ REQ: tmux v3+
|
||||
|
||||
## Need
|
||||
|
||||
After I discovered tmux I searched for a way to manage multiple groups of tmux sessions under one unified script. Not
|
||||
finding anything (or maybe just not looking well enough) I decided to write my own. It's not pretty, but I've been
|
||||
using for a couple of years now and it's become an integral part of my workflow.
|
||||
After I discovered tmux I searched for a way to manage multiple groups of tmux sessions under one unified script. Not finding anything (or maybe just not looking well enough) I decided to write my own. It's not pretty, but I've been using for a couple of years now and it's become an integral part of my workflow.
|
||||
|
||||
My setup works this way:
|
||||
|
||||
@@ -60,14 +57,11 @@ case $session in
|
||||
;;
|
||||
```
|
||||
|
||||
Calling the script with a pre-determined session name (ex: `./tmux-menu.sh web` or `./tmux-menu.sh database`) first
|
||||
checks to see if there is already a session group with that name. If not, it creates a new group with the commands you
|
||||
specify and names each connection in tmux.
|
||||
Calling the script with a pre-determined session name (ex: `./tmux-menu.sh web` or `./tmux-menu.sh database`) firstchecks to see if there is already a session group with that name. If not, it creates a new group with the commands youspecify and names each connection in tmux.
|
||||
|
||||
If the session group *does* already exist, it simply switches you to that group.
|
||||
|
||||
If you alias `tmux-menu.sh` to something shorter (like `tm`), switching between active sessions is as easy as `Ctrl-A +
|
||||
d` (to detach) and `tm web` (to attach or create the web group).
|
||||
If you alias `tmux-menu.sh` to something shorter (like `tm`), switching between active sessions is as easy as `Ctrl-A + d` (to detach) and `tm web` (to attach or create the web group).
|
||||
|
||||
Killing session groups is as easy as `tmux-session kill -t web`.
|
||||
|
||||
@@ -75,8 +69,6 @@ Killing session groups is as easy as `tmux-session kill -t web`.
|
||||
|
||||
## Use
|
||||
|
||||
I've found that I use this script on different servers with different configurations. So I copy the
|
||||
`tmux-menu.template.sh` to `$HOME/tmux-menu.sh` and then alias that to `tm`.
|
||||
I've found that I use this script on different servers with different configurations. So I copy the `tmux-menu.template.sh` to `$HOME/tmux-menu.sh` and then alias that to `tm`.
|
||||
|
||||
I also include my `.tmux.conf` file with comments about what does what. If you choose to use it, make sure to copy it
|
||||
to your home directory.
|
||||
I also include my `.tmux.conf` file with comments about what does what. If you choose to use it, make sure to copy it to your home directory.
|
||||
|
||||
Reference in New Issue
Block a user