diff --git a/agent-cmd.sh b/agent-cmd.sh index 71beddd..3f00145 100755 --- a/agent-cmd.sh +++ b/agent-cmd.sh @@ -30,6 +30,10 @@ agent=$(printf '%s\n' "${agents[@]}" | fzf \ --margin="0,$hmargin" \ --padding=1) +# Reset cursor so the agent doesn't render starting where fzf left it. +tput cup 0 0 +tput ed + if [ -n "$agent" ]; then "$agent" || true fi