mirror of
https://github.com/SeriousBug/dotfiles
synced 2025-12-06 21:12:08 -06:00
Add GitHub CLI to setup script
Install gh (GitHub CLI) via Homebrew and prompt for authentication if not already logged in. This enables GitHub automation and CLI workflows during initial setup. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
fad40330cd
commit
91fe8ad0f5
13
setup.sh
13
setup.sh
|
|
@ -23,6 +23,7 @@ PACKAGES=(
|
|||
fish
|
||||
dust
|
||||
eza
|
||||
gh
|
||||
htop
|
||||
go
|
||||
jq
|
||||
|
|
@ -68,6 +69,18 @@ else
|
|||
echo "Skipping macOS-specific casks (not on macOS)"
|
||||
fi
|
||||
|
||||
# Set up GitHub CLI authentication
|
||||
if command -v gh &> /dev/null; then
|
||||
if ! gh auth status &>/dev/null; then
|
||||
echo ""
|
||||
echo "GitHub CLI is installed but not authenticated."
|
||||
echo "Please log in to GitHub CLI:"
|
||||
gh auth login
|
||||
else
|
||||
echo "✓ GitHub CLI already authenticated"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "✓ Setup complete!"
|
||||
echo ""
|
||||
echo "Next steps:"
|
||||
|
|
|
|||
Loading…
Reference in a new issue