- Added system detection logic to handle different OS types (Linux, macOS, Windows). - Enhanced user creation logic to support non-root execution and proper ownership. - Updated directory creation to use dynamic home paths based on detected OS. - Improved Git configuration and metadata capture with error handling. - Modularized system package installation based on OS type. - Streamlined Node.js, Python, and Rust setup scripts with error handling. - Updated shell configuration to include dynamic aliases and environment info script. - Deprecated `devcontainer_image` variable in favor of `devcontainer_repo_url` for better repository management. - Adjusted Terraform workspace configuration to support new repository URL and caching options.
34 lines
813 B
Bash
Executable File
34 lines
813 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Running post-create setup..."
|
|
|
|
# Set up Git configuration
|
|
git config --global init.defaultBranch main
|
|
git config --global pull.rebase false
|
|
|
|
# Create common directories
|
|
mkdir -p ~/bin ~/.local/bin ~/.config
|
|
|
|
# Run our setup scripts if they exist
|
|
if [ -f /usr/local/bin/claude-install.sh ]; then
|
|
echo "Installing Claude CLI..."
|
|
/usr/local/bin/claude-install.sh
|
|
fi
|
|
|
|
if [ -f /usr/local/bin/cursor-setup.sh ]; then
|
|
echo "Setting up Cursor IDE support..."
|
|
/usr/local/bin/cursor-setup.sh
|
|
fi
|
|
|
|
if [ -f /usr/local/bin/windsurf-setup.sh ]; then
|
|
echo "Setting up Windsurf IDE support..."
|
|
/usr/local/bin/windsurf-setup.sh
|
|
fi
|
|
|
|
if [ -f /usr/local/bin/git-hooks.sh ]; then
|
|
echo "Setting up Git hooks..."
|
|
/usr/local/bin/git-hooks.sh
|
|
fi
|
|
|
|
echo "Post-create setup complete!" |