update tmux notes

This commit is contained in:
ys
2025-01-03 00:12:07 +01:00
parent a02480b07c
commit 65c058a2b3
3 changed files with 103 additions and 17 deletions

5
.gitignore vendored
View File

@@ -1,3 +1,6 @@
*.pyc *.pyc
*.db *.db
notes/zettlekasten/.obsidian/ *.m4a
*.mp4
*.mp3
notes/zettlekasten/.obsidian/*

View File

@@ -13,12 +13,12 @@
"state": { "state": {
"type": "markdown", "type": "markdown",
"state": { "state": {
"file": "1 - Fleeting Notes/Metadata Manipulation.md", "file": "1 - Fleeting Notes/tmux wflow.md",
"mode": "source", "mode": "source",
"source": false "source": false
}, },
"icon": "lucide-file", "icon": "lucide-file",
"title": "Metadata Manipulation" "title": "tmux wflow"
} }
}, },
{ {
@@ -101,7 +101,8 @@
} }
], ],
"direction": "horizontal", "direction": "horizontal",
"width": 375.5 "width": 234.5,
"collapsed": true
}, },
"right": { "right": {
"id": "0ba52521b266806f", "id": "0ba52521b266806f",
@@ -163,10 +164,10 @@
"state": { "state": {
"type": "outline", "type": "outline",
"state": { "state": {
"file": "3 - References/Puzzles.md" "file": "1 - Fleeting Notes/tmux wflow.md"
}, },
"icon": "lucide-list", "icon": "lucide-list",
"title": "Outline of Puzzles" "title": "Outline of tmux wflow"
} }
}, },
{ {
@@ -189,14 +190,14 @@
"state": { "state": {
"type": "file-properties", "type": "file-properties",
"state": { "state": {
"file": "1 - Fleeting Notes/Metadata Manipulation.md" "file": "1 - Fleeting Notes/tmux wflow.md"
}, },
"icon": "lucide-info", "icon": "lucide-info",
"title": "File properties for Metadata Manipulation" "title": "File properties for tmux wflow"
} }
} }
], ],
"currentTab": 5 "currentTab": 3
} }
], ],
"direction": "horizontal", "direction": "horizontal",
@@ -212,26 +213,27 @@
"command-palette:Open command palette": false "command-palette:Open command palette": false
} }
}, },
"active": "33923136d84ea6a5", "active": "d4c0ab3a4686223c",
"lastOpenFiles": [ "lastOpenFiles": [
"1 - Fleeting Notes/Metadata Manipulation.md",
"MOCS/Linux Wflow.md", "MOCS/Linux Wflow.md",
"1 - Fleeting Notes/tmux wflow.md",
"1 - Fleeting Notes/Tiling Managers.md",
"1 - Fleeting Notes/Untitled.md",
"3 - References/Solving Techniques.md",
"3 - References/Networking.md",
"3 - References/Linux Services.md",
"MOCS/Persian Poetry.md",
"1 - Fleeting Notes/Metadata Manipulation.md",
"1 - Fleeting Notes/Backup and Restore Solution.md", "1 - Fleeting Notes/Backup and Restore Solution.md",
"1 - Fleeting Notes/Synology NAS.md", "1 - Fleeting Notes/Synology NAS.md",
"3 - References/Linux Services.md",
"3 - References/Networking.md",
"3 - References/Dual Booting.md", "3 - References/Dual Booting.md",
"3 - References/Hacker News.md", "3 - References/Hacker News.md",
"1 - Fleeting Notes/Untitled.md",
"1 - Fleeting Notes/Russel Conjugation.md", "1 - Fleeting Notes/Russel Conjugation.md",
"1 - Fleeting Notes/Omar Khayyam.md", "1 - Fleeting Notes/Omar Khayyam.md",
"1 - Fleeting Notes/Firejail.md", "1 - Fleeting Notes/Firejail.md",
"1 - Fleeting Notes/Exposing Virtual machines to LAN.md", "1 - Fleeting Notes/Exposing Virtual machines to LAN.md",
"MOCS/Puzzles.md", "MOCS/Puzzles.md",
"MOCS/Persian Poetry.md",
"1 - Fleeting Notes/LLMs.md", "1 - Fleeting Notes/LLMs.md",
"1 - Fleeting Notes/Tiling Managers.md",
"3 - References/Solving Techniques.md",
"3 - References/Knight Moves 6.md", "3 - References/Knight Moves 6.md",
"Templates/MOC.md", "Templates/MOC.md",
"Untitled.canvas", "Untitled.canvas",

View File

@@ -0,0 +1,81 @@
---
tags:
- "#tmux"
parents: "[[Linux Wflow]]"
date/time: 2024-12-29T15:51:00
---
# Sessions
## New Sessions
```
tmux
tmux new
tmux new-session
```
named sessions - to encapsulates different workflows
```
tmux new -s networking
tmux new -s development
tmux new -s ai specific stuff
```
## Exit Sessions
```
exit
```
## List Sessions
```
tmux list-sessions
tmux ls
```
## Attach/Detach from sessions
attach ``` tmux attach```
```tmux attach -t <sessionname>```
detach ``` prefix + d```
## Killing Sessions
- within the session:```exit```
- outside the session (e.g detached)
```
tmux kill-session -t "sessionname"
```
# Windows
new window within a session ``` prefix + c```
new session with a named window: ``` tmux new -s <sname> -n <windoname>```
rename window ```prefix + ,```
moving between windows
```
prefix + n or prefix +p
prefix + i where i index of window
```
to close a session have to close *all* windows in session using:
```
exit
prefix + &
```
# Panes
## Vertical
```
prefix + %
```
## Horizontal
```
prefix + "
```