-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.scripts.sh
48 lines (43 loc) · 992 Bytes
/
.scripts.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
function grubmk() {
if [ $EUID != 0 ]; then
sudo grub-mkconfig -o /boot/grub/grub.cfg
else
grub-mkconfig -o /boot/grub/grub.cfg
fi
}
function pz() {
tmux has-session -t pzserver 2>/dev/null
if [ $? != 0 ]; then
tmux new -s pzserver ". ~/.steam/steam/steamapps/common/ProjectZomboid/projectzomboid/start-server.sh -servername KeyreapersServer"
else
tmux attach -t pzserver
fi
}
# setup a tmux session just for nc so it doesn't stop when I close it
function nc() {
tmux has-session -t ncspot 2>/dev/null
if [ $? != 0 ]; then
tmux new -s ncspot "ncspot"
else
tmux attach -t ncspot
fi
}
function lama() {
tmux has-session -t ollama 2>/dev/null
if [ $? != 0 ]; then
tmux new -s ollama "ollama serve"
else
tmux attach -t ollama
fi
}
function ene() {
tmux has-session -t ene 2>/dev/null
if [ $? != 0 ]; then
tmux new -s ene "ollama run ene"
else
tmux attach -t ene
fi
}
function fixmonitors() {
ara 3mon && sleep 2 && ara default-120 && i3-msg restart
}