mirror of
https://github.com/acedanger/shell.git
synced 2025-12-06 00:00:13 -08:00
refactor: Remove golang-go from essential package list for shell setup
This commit is contained in:
@@ -2,41 +2,14 @@
|
|||||||
|
|
||||||
# Convenience script to run setup without Ollama installation
|
# Convenience script to run setup without Ollama installation
|
||||||
# This script sets SKIP_OLLAMA=true and runs the main setup script
|
# This script sets SKIP_OLLAMA=true and runs the main setup script
|
||||||
|
#
|
||||||
|
# Usage: ./setup-no-ollama.sh [setup script options]
|
||||||
|
# Author: acedanger
|
||||||
|
# Description: Runs setup while skipping Ollama and configures Fabric for external AI providers
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
GREEN='\033[0;32m'
|
# Define colors for output
|
||||||
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}"
|
|
||||||
#!/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'
|
GREEN='\033[0;32m'
|
||||||
YELLOW='\033[0;33m'
|
YELLOW='\033[0;33m'
|
||||||
BLUE='\033[0;34m'
|
BLUE='\033[0;34m'
|
||||||
@@ -58,20 +31,24 @@ echo -e "\n${YELLOW}Running setup with SKIP_OLLAMA=true...${NC}"
|
|||||||
# Run the main setup script
|
# Run the main setup script
|
||||||
"$SCRIPT_DIR/setup/setup.sh" "$@"
|
"$SCRIPT_DIR/setup/setup.sh" "$@"
|
||||||
|
|
||||||
|
# Configure Fabric after main setup completes
|
||||||
echo -e "\n${BLUE}Configuring Fabric with external AI providers...${NC}"
|
echo -e "\n${BLUE}Configuring Fabric with external AI providers...${NC}"
|
||||||
|
|
||||||
# Create Fabric config directory if it doesn't exist
|
# Create Fabric config directory if it doesn't exist
|
||||||
mkdir -p ~/.config/fabric
|
mkdir -p ~/.config/fabric
|
||||||
|
|
||||||
# Download the pre-configured .env file
|
# Download the pre-configured .env file from gist
|
||||||
echo -e "${YELLOW}Downloading Fabric .env configuration...${NC}"
|
echo -e "${YELLOW}Downloading Fabric .env configuration from gist...${NC}"
|
||||||
if curl -s https://gist.ptrwd.com/acedanger/7d564d3f611e4bab88004c15c2d30028/raw/HEAD/fabric-env -o ~/.config/fabric/.env; then
|
GIST_URL="https://gist.ptrwd.com/acedanger/7d564d3f611e4bab88004c15c2d30028/raw/HEAD/fabric-env"
|
||||||
|
|
||||||
|
if curl -s "$GIST_URL" -o ~/.config/fabric/.env; then
|
||||||
chmod 600 ~/.config/fabric/.env
|
chmod 600 ~/.config/fabric/.env
|
||||||
echo -e "${GREEN}✓ Fabric .env file configured successfully${NC}"
|
echo -e "${GREEN}✓ Fabric .env file configured successfully${NC}"
|
||||||
|
|
||||||
# Verify the file was downloaded correctly
|
# Verify the file was downloaded correctly
|
||||||
if [ -s ~/.config/fabric/.env ]; then
|
if [ -s ~/.config/fabric/.env ]; then
|
||||||
echo -e "${GREEN}✓ Configuration file size: $(stat -c%s ~/.config/fabric/.env) bytes${NC}"
|
FILE_SIZE=$(stat -c%s ~/.config/fabric/.env 2>/dev/null || echo "unknown")
|
||||||
|
echo -e "${GREEN}✓ Configuration file downloaded: ${FILE_SIZE} bytes${NC}"
|
||||||
else
|
else
|
||||||
echo -e "${RED}⚠ Downloaded file appears to be empty${NC}"
|
echo -e "${RED}⚠ Downloaded file appears to be empty${NC}"
|
||||||
fi
|
fi
|
||||||
@@ -93,10 +70,13 @@ else
|
|||||||
# Google Gemini Configuration
|
# Google Gemini Configuration
|
||||||
#GOOGLE_API_KEY=your_google_api_key_here
|
#GOOGLE_API_KEY=your_google_api_key_here
|
||||||
|
|
||||||
|
# Groq Configuration
|
||||||
|
#GROQ_API_KEY=your_groq_api_key_here
|
||||||
|
|
||||||
# Set your preferred default model
|
# Set your preferred default model
|
||||||
DEFAULT_MODEL=gpt-4o-mini
|
DEFAULT_MODEL=gpt-4o-mini
|
||||||
|
|
||||||
# For more providers and detailed configuration, see:
|
# For complete provider list, see:
|
||||||
# https://gist.ptrwd.com/acedanger/7d564d3f611e4bab88004c15c2d30028
|
# https://gist.ptrwd.com/acedanger/7d564d3f611e4bab88004c15c2d30028
|
||||||
EOF
|
EOF
|
||||||
chmod 600 ~/.config/fabric/.env
|
chmod 600 ~/.config/fabric/.env
|
||||||
@@ -106,10 +86,10 @@ fi
|
|||||||
echo -e "\n${GREEN}=== Setup completed without Ollama ===${NC}"
|
echo -e "\n${GREEN}=== Setup completed without Ollama ===${NC}"
|
||||||
echo -e "${BLUE}Next steps for Fabric configuration:${NC}"
|
echo -e "${BLUE}Next steps for Fabric configuration:${NC}"
|
||||||
echo -e "${YELLOW}1. Edit ~/.config/fabric/.env and add your API keys${NC}"
|
echo -e "${YELLOW}1. Edit ~/.config/fabric/.env and add your API keys${NC}"
|
||||||
echo -e "${YELLOW}2. Uncomment your preferred AI provider${NC}"
|
echo -e "${YELLOW}2. Uncomment your preferred AI provider section${NC}"
|
||||||
echo -e "${YELLOW}3. Set DEFAULT_MODEL to your preferred model${NC}"
|
echo -e "${YELLOW}3. Set DEFAULT_MODEL to your preferred model${NC}"
|
||||||
echo -e "${YELLOW}4. Test with: fabric --list-patterns${NC}"
|
echo -e "${YELLOW}4. Test configuration with: fabric --list-patterns${NC}"
|
||||||
echo -e "\n${BLUE}Available AI providers:${NC}"
|
echo -e "\n${BLUE}Supported AI providers:${NC}"
|
||||||
echo -e "${YELLOW}- OpenAI (GPT-4, GPT-4o, GPT-3.5-turbo)${NC}"
|
echo -e "${YELLOW}- OpenAI (GPT-4, GPT-4o, GPT-3.5-turbo)${NC}"
|
||||||
echo -e "${YELLOW}- Anthropic (Claude-3.5-sonnet, Claude-3-haiku)${NC}"
|
echo -e "${YELLOW}- Anthropic (Claude-3.5-sonnet, Claude-3-haiku)${NC}"
|
||||||
echo -e "${YELLOW}- Google (Gemini-pro, Gemini-1.5-pro)${NC}"
|
echo -e "${YELLOW}- Google (Gemini-pro, Gemini-1.5-pro)${NC}"
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
// Core tools
|
// Core tools
|
||||||
git
|
git
|
||||||
golang-go
|
|
||||||
python3
|
python3
|
||||||
wget
|
wget
|
||||||
curl
|
curl
|
||||||
|
|||||||
Reference in New Issue
Block a user