prole/env.sh

31 lines
1.1 KiB
Bash
Executable File

#!/usr/bin/env bash
# Prole environment configuration
# This file is generated by the installer. Source it in new shells, or execute as a wrapper:
# "$PROLE_HOME/env.sh" <command> [args…]
# shellcheck shell=bash
export PROLE_HOME="/Users/chrisfu/dev/prole"
export PROLE_CONF="/Users/chrisfu/dev/prole/conf"
export PROLE_DATA="/Users/chrisfu/dev/prole/data"
export PROLE_LOGS="/Users/chrisfu/dev/prole/logs"
export PROLE_SERVICE="/Users/chrisfu/dev/prole/etc"
export NAMESPACE="prole-chrisfu-a05806"
# Ensure PATH works for GUI-launched shells (Docker, Ollama, etc.)
_prole_add_path() { case ":${PATH}:" in *":$1:"*) ;; *) PATH="$1:${PATH:-}" ;; esac; }
_prole_add_path "$PROLE_HOME/bin"
_prole_add_path "/opt/homebrew/bin"
_prole_add_path "/usr/local/bin"
_prole_add_path "/usr/bin"
_prole_add_path "/bin"
_prole_add_path "/usr/sbin"
_prole_add_path "/sbin"
export PATH
# Add custom paths below if needed (examples):
# _prole_add_path "/Applications/Ollama.app/Contents/MacOS"
# If executed with arguments, run them under this environment
if [ "$#" -gt 0 ]; then
exec "$@"
fi