feat(cmd/p*ng): adding ping/pong commands and patch the configuration for irssi issues

This commit is contained in:
Raphael 2025-06-03 16:59:58 +02:00
parent 97103ac852
commit 731d40061d
6 changed files with 118 additions and 5 deletions

View file

@ -114,17 +114,16 @@ test: debug
'bash -lc "nc localhost $(PORT) || exec yes \"netcat exit code: $?\""'
@tmux attach -t $(SESSION)
run: re
# @tmux split-window -h -p 70 -t $(SESSION):0 \
# 'bash -lc "irssi -c localhost -p $(PORT) -w irc || exec yes \"irssi exit code: $?\""'
run: all
@printf '$(GREY) now running with\n\t- Port:\t\t$(GREEN)$(PORT)$(GREY)\n\t- Password:\t$(GREEN)irc$(END)\n'
@if tmux has-session -t $(SESSION) 2>/dev/null; then \
tmux kill-session -t $(SESSION); \
fi
@tmux new-session -d -s $(SESSION) \
'bash -lc "./$(NAME) $(PORT) irc; exec bash"'
@tmux split-window -h -p 70 -t $(SESSION):0 \
'bash -lc "irssi -c localhost -p $(PORT) -w irc || exec yes \"irssi exit code: $?\""'
@tmux split-window -v -p 50 -t $(SESSION):0.1 \
@tmux split-window -v -p 50 -t $(SESSION):0 \
'bash -lc "nc localhost $(PORT) || exec yes \"netcat exit code: $?\""'
@tmux attach -t $(SESSION)