fix(techne): add fallback to af when agy is not locally installed

This commit is contained in:
Kryštof Pešek
2026-11-05 16:54:05 +01:00
parent ae8c452fb5
commit 8096551c0f
+9 -1
View File
@@ -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