mirror of
https://github.com/acedanger/shell.git
synced 2025-12-06 02:20:11 -08:00
feat: Implement SKIP_OLLAMA feature for optional setup without Ollama installation and add documentation
refactor: Enhance .profile for Go path management and environment variable setup
This commit is contained in:
32
setup-no-ollama.sh
Executable file
32
setup-no-ollama.sh
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Convenience script to run setup without Ollama installation
|
||||
# This script sets SKIP_OLLAMA=true and runs the main setup script
|
||||
|
||||
set -e
|
||||
|
||||
GREEN='\033[0;32m'
|
||||
YELLOW='\033[0;33m'
|
||||
NC='\033[0m' # No Color
|
||||
|
||||
echo -e "${GREEN}=== Shell Setup (Without Ollama) ===${NC}"
|
||||
echo -e "${YELLOW}This will install all packages and configurations except Ollama Docker setup${NC}"
|
||||
echo -e "${YELLOW}Fabric will be installed but configured for external AI providers${NC}"
|
||||
|
||||
# Get the directory of this script
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
# Set SKIP_OLLAMA environment variable and run setup
|
||||
export SKIP_OLLAMA=true
|
||||
|
||||
echo -e "\n${YELLOW}Running setup with SKIP_OLLAMA=true...${NC}"
|
||||
|
||||
# Run the main setup script
|
||||
"$SCRIPT_DIR/setup/setup.sh" "$@"
|
||||
|
||||
echo -e "\n${GREEN}=== Setup completed without Ollama ===${NC}"
|
||||
echo -e "${YELLOW}To configure Fabric with your preferred AI provider:${NC}"
|
||||
echo -e "${YELLOW}1. Edit ~/.config/fabric/.env${NC}"
|
||||
echo -e "${YELLOW}2. Add your API keys (OpenAI, Anthropic, Google, etc.)${NC}"
|
||||
echo -e "${YELLOW}3. Set DEFAULT_MODEL to your preferred model${NC}"
|
||||
echo -e "${YELLOW}4. Test with: fabric --list-patterns${NC}"
|
||||
Reference in New Issue
Block a user