From 8096551c0fce210661a3bd0f19311bfcf2ec3b8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kry=C5=A1tof=20Pe=C5=A1ek?= Date: Thu, 5 Nov 2026 16:54:05 +0100 Subject: [PATCH] fix(techne): add fallback to af when agy is not locally installed --- techne | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/techne b/techne index 10b5772..3106548 100755 --- a/techne +++ b/techne @@ -1,2 +1,10 @@ #!/bin/zsh -agy --conversation=9860fe31-3526-48d1-9063-3e58e630faf9 +CONV="9860fe31-3526-48d1-9063-3e58e630faf9" + +if command -v agy >/dev/null 2>&1; then + exec agy --conversation="$CONV" "$@" +elif [ -x "$HOME/bin/af" ]; then + exec "$HOME/bin/af" --conversation="$CONV" "$@" +else + exec ssh -p 2222 -t home "tmux new-session -A -s agy agy --conversation=$CONV $*" +fi