Update 2024-02-14 07:51 OpenBSD/amd64-x13
This commit is contained in:
27
.bin/OLD/webdev
Executable file
27
.bin/OLD/webdev
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh -x
|
||||
|
||||
session=webdev
|
||||
socket=~/.tmux.sock
|
||||
arg="$1"
|
||||
|
||||
if ! tmux att -t webdev >/dev/null 2>&1
|
||||
then
|
||||
# create session
|
||||
tmux new-session -s $session -d
|
||||
|
||||
# window 1
|
||||
window=1
|
||||
tmux rename-window -t $session:$window 'edit'
|
||||
tmux send-keys -t $session:$window 'cd ~/website/site' Enter
|
||||
tmux send-keys -t $session:$window "nnn" Enter
|
||||
|
||||
tmux split-window -t $session:$window -v
|
||||
tmux resize-pane -t $session:$window.1 -y 6
|
||||
tmux send-keys -t $session:$window.1 'cd ~/website && make notify' Enter
|
||||
tmux select-pane -U
|
||||
|
||||
luakit -n -u http://localhost >/dev/null 2>&1
|
||||
|
||||
# attach to session
|
||||
tmux att -t webdev
|
||||
fi
|
||||
Reference in New Issue
Block a user