opencode-code-agent/bin/gstack-env.sh

12 lines
461 B
Bash
Raw Permalink Normal View History

2026-03-23 09:24:33 +00:00
#!/bin/bash
# gstack-env.sh — Set environment variables for gstack-opencode
# Source this file to set up the environment:
# source ~/gstack-opencode/bin/gstack-env.sh
export GSTACK_OPENCODE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
export GSTACK_BROWSE="${GSTACK_OPENCODE_DIR}/browse/dist/browse"
export PATH="${GSTACK_OPENCODE_DIR}/bin:$PATH"
# Create ~/.gstack directory if it doesn't exist
mkdir -p ~/.gstack/{sessions,projects,analytics}