o: /model and /backend with no args show current value

This commit is contained in:
Ollie Agent 2026-08-08 23:04:33 +02:00
parent 79afb09f3d
commit cf1866d646
1 changed files with 2 additions and 0 deletions

View File

@ -346,7 +346,9 @@ cmd_prompt() {
compact) echo "compact" | ollie-9p write "$path/ctl"; echo "[compacted]" ;;
kill) echo "kill" | ollie-9p write "session/$s/ctl"; echo "[session killed]"; break ;;
clear) echo "clear" | ollie-9p write "$path/ctl"; echo "[cleared]" ;;
model) ollie-9p read "$path/cfg" | grep '^model=' ;;
model*) echo "$cmd" | ollie-9p write "$path/ctl"; echo "[${cmd}]" ;;
backend) ollie-9p read "$path/cfg" | grep '^backend=' ;;
backend*) echo "$cmd" | ollie-9p write "$path/ctl"; echo "[${cmd}]" ;;
cwd*) echo "$cmd" | ollie-9p write "$path/ctl"; echo "[${cmd}]" ;;
quit|q) tmux kill-session -t "o-${s}" 2>/dev/null; exit 0 ;;