dblume commited on 2025-07-20 12:06:00
Showing 1 changed files, with 4 additions and 2 deletions.
Instead of attach-session, new-session, and set-option just use attach, new and set. Line wrap each tmux command, to make it easier to read.
| ... | ... |
@@ -48,9 +48,11 @@ bind b if -F '#{==:#{session_name},scratch}' {
|
| 48 | 48 |
detach-client |
| 49 | 49 |
} {
|
| 50 | 50 |
if "tmux has-session -t scratch" {
|
| 51 |
- popup -E -w 90% -h 60% "tmux attach-session -t scratch" |
|
| 51 |
+ popup -E -w 90% "tmux attach -t scratch" |
|
| 52 | 52 |
} {
|
| 53 |
- popup -E -w 90% -h 60% "tmux new-session -d -c '#{pane_current_path}' -s scratch && tmux set-option -t scratch status off && tmux attach-session -t scratch"
|
|
| 53 |
+ popup -E -w 90% "tmux new -d -c '#{pane_current_path}' -s scratch && \
|
|
| 54 |
+ tmux set -t scratch status off && \ |
|
| 55 |
+ tmux attach -t scratch" |
|
| 54 | 56 |
} |
| 55 | 57 |
} |
| 56 | 58 |
|
| 57 | 59 |