Compare commits
2 Commits
color-print
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 850efbe00f | |||
| a7183cd560 |
@@ -53,7 +53,6 @@ ins_server:
|
|||||||
echo "systemctl status ekho"
|
echo "systemctl status ekho"
|
||||||
systemctl status ekho
|
systemctl status ekho
|
||||||
|
|
||||||
|
|
||||||
# install client
|
# install client
|
||||||
ins_client:
|
ins_client:
|
||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
@@ -67,3 +66,57 @@ ins_client:
|
|||||||
mv ekho /usr/local/bin/
|
mv ekho /usr/local/bin/
|
||||||
echo "add 'ekho' to shell config (config.fish, .bashrc, etc)"
|
echo "add 'ekho' to shell config (config.fish, .bashrc, etc)"
|
||||||
|
|
||||||
|
# test server
|
||||||
|
stest:
|
||||||
|
@echo "creating server test session"
|
||||||
|
@tmux new-session -Ad -s "server test"
|
||||||
|
@tmux split-window -h -t "server test:1" -l 10%
|
||||||
|
@tmux split-window -v -t "server test:1.2"
|
||||||
|
@tmux send-keys -t "server test:1.1" "clear" Enter
|
||||||
|
@tmux send-keys -t "server test:1.2" "clear" Enter
|
||||||
|
@tmux send-keys -t "server test:1.3" "clear" Enter
|
||||||
|
@tmux rename-window "server test"
|
||||||
|
@tmux send-keys -t "server test:1.1" "vim server.go" Enter
|
||||||
|
@tmux send-keys -t "server test:1.2" "./server"
|
||||||
|
@tmux send-keys -t "server test:1.3" "./client"
|
||||||
|
@tmux attach -t "server test"
|
||||||
|
|
||||||
|
# test client
|
||||||
|
ctest:
|
||||||
|
@echo "creating client test session"
|
||||||
|
@tmux new-session -Ad -s "client test"
|
||||||
|
@tmux split-window -h -t "client test:1" -l 10%
|
||||||
|
@tmux split-window -v -t "client test:1.2"
|
||||||
|
@tmux send-keys -t "client test:1.1" "clear" Enter
|
||||||
|
@tmux send-keys -t "client test:1.2" "clear" Enter
|
||||||
|
@tmux send-keys -t "client test:1.3" "clear" Enter
|
||||||
|
@tmux rename-window "client test"
|
||||||
|
@tmux send-keys -t "client test:1.1" "vim client.go" Enter
|
||||||
|
@tmux send-keys -t "client test:1.2" "./server" Enter
|
||||||
|
@tmux send-keys -t "client test:1.3" "./client"
|
||||||
|
@tmux attach -t "client test"
|
||||||
|
|
||||||
|
# dev work
|
||||||
|
dev:
|
||||||
|
#!/usr/bin/bash
|
||||||
|
REPO=$(basename $(git rev-parse --show-toplevel))
|
||||||
|
BRANCH=$(git branch --show-current)
|
||||||
|
tmux has-session -t "$REPO->$BRANCH"
|
||||||
|
if [[ $? -eq 0 ]]; then
|
||||||
|
tmux attach-session -t "$REPO->$BRANCH"
|
||||||
|
else
|
||||||
|
tmux new-session -Ad -s "$REPO->$BRANCH"
|
||||||
|
tmux rename-window "write"
|
||||||
|
tmux new-window -a -t 1 -n "test"
|
||||||
|
tmux new-window -a -t 2 -n "git" lazygit
|
||||||
|
tmux new-window -a -t 3 -n "man"
|
||||||
|
tmux select-window -t 2
|
||||||
|
tmux select-window -t 1
|
||||||
|
tmux attach -t "$REPO->$BRANCH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# prep repo to be committed
|
||||||
|
prep:
|
||||||
|
mv justfile test_justfile
|
||||||
|
mv prod_justfile justfile
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user