tangled
alpha
login
or
join now
finxol.io
/
config
0
fork
atom
Config and setup files
0
fork
atom
overview
issues
pulls
pipelines
add ghostty init file
finxol.io
9 months ago
4ee4644d
88b7f1b7
+17
1 changed file
expand all
collapse all
unified
split
.ghostty-init.sh
+17
.ghostty-init.sh
···
1
1
+
#!/bin/zsh
2
2
+
SESSION_NAME="default"
3
3
+
4
4
+
# Check if the session already exists
5
5
+
tmux has-session -t $SESSION_NAME 2>/dev/null
6
6
+
7
7
+
if [ $? -eq 0 ]; then
8
8
+
# If the session exists, reattach to it
9
9
+
tmux attach-session -t $SESSION_NAME
10
10
+
else
11
11
+
# If the session doesn't exist, start a new one
12
12
+
tmux new-session -s $SESSION_NAME -d
13
13
+
tmux attach-session -t $SESSION_NAME
14
14
+
fi
15
15
+
16
16
+
$SHELL
17
17
+