Files
fish-config/functions/antigravity-resume.fish
T
rootiest e075c40c9d feat(ai): migrate gemini-cli references to antigravity-cli (agy)
Rename gemini-resume → antigravity-resume and save_gemini_session →
save_antigravity_session; update all session files from .gemini_session
to .antigravity_session and LAST_GEMINI_SESSION → LAST_ANTIGRAVITY_SESSION.
Replace gemini/gemini-cli binary calls with agy throughout superpowers,
code-resume, and the resume function. Add antigravity-ide wrapper for the
renamed IDE binary; update abbr v → antigravity-ide (VSCode-equivalent)
and update README/requirements to reflect the new tool names.
2026-05-20 20:41:04 -04:00

24 lines
710 B
Fish

# Copyright (C) 2026 Rootiest
# SPDX-License-Identifier: AGPL-3.0-or-later
# Execute antigravity-resume
function antigravity-resume --description 'Execute antigravity-resume'
if not type -q agy
echo "Error: The 'agy' command is not installed or not in PATH." >&2
return 1
end
if not type -q save_antigravity_session
echo "Error: The companion function 'save_antigravity_session' is missing." >&2
return 1
end
if test -f .antigravity_session
set -l sid (cat .antigravity_session)
# Use --resume (or -r) to jump back in
agy --resume $sid
else
# Fallback to the interactive session browser
agy --resume
end
end