Skip to content

Automated macOS terminal setup for DevOps & SREs. Includes Zsh config, Starship prompt, fzf, and 200+ aliases for kubectl, docker, and terraform. Apple Silicon native.

Notifications You must be signed in to change notification settings

wiwek13/shell-bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Shell Bootstrap

Zsh Homebrew

Production-ready macOS shell configuration for DevOps engineers, SREs, and developers.

One-command setup β€’ 200+ aliases β€’ Starship prompt β€’ Kubernetes tools β€’ Fuzzy completion

πŸ“¦ Quick Start β€’ ✨ Features β€’ πŸ“š Docs β€’ βš™οΈ Configure


✨ Features

Feature Description
🎨 Starship Prompt Beautiful prompt with Git, K8s, AWS, Docker status
⚑ 200+ Aliases Shortcuts for Git, kubectl, Terraform, Docker
πŸ”Œ Smart Plugins fzf-tab, autosuggestions, syntax highlighting
πŸ“¦ 50+ DevOps Tools k9s, stern, helm, argocd, trivy, and more
πŸ› οΈ Configurable Toggle any package on/off via config.sh
πŸ”„ Idempotent Safe to re-run, auto-creates backups

οΏ½ Quick Start

# Clone
git clone https://github.com/yourusername/shell-bootstrap.git
cd shell-bootstrap

# (Optional) Customize
vim config.sh
vim config.sh
vim Brewfile

# Install
./bootstrap.sh

Install Options

Command Description
./bootstrap.sh Interactive mode
./bootstrap.sh --yes Non-interactive (CI/CD)
./bootstrap.sh --help Show help

🧰 What's Included

🐚 Shell Core

Tool Description
Antidote ⚑ Fast Zsh plugin manager
Starship πŸš€ Cross-shell prompt
Zellij πŸ“Ί Terminal multiplexer
Oh My Zsh πŸ”Œ Plugin framework

πŸ› οΈ CLI Tools

Tool Description
eza πŸ“ Modern ls with icons
bat πŸ¦‡ cat with syntax highlighting
fzf πŸ” Fuzzy finder
ripgrep ⚑ Fast grep
fd πŸ”Ž Fast find
zoxide πŸ“‚ Smarter cd
btop πŸ“Š Beautiful system monitor
mole 🐹 Mac cleanup & optimizer

☸️ DevOps Tools

Tool Description
kubectl ☸️ Kubernetes CLI
k9s 🐢 Kubernetes TUI
helm ⎈ K8s package manager
stern πŸ“œ Multi-pod log tailing
terraform πŸ—οΈ Infrastructure as Code
argocd πŸ”„ GitOps CLI
trivy πŸ”’ Security scanner
opencode πŸ€– AI terminal coding agent

πŸ–₯️ Desktop Apps (via Brewfile)

App Description
Warp πŸ€– AI-powered terminal
OrbStack 🐳 Docker alternative
Lens πŸ‘οΈ Kubernetes IDE
VS Code πŸ“ Code editor

βš™οΈ Configuration

Edit config.sh before installing:

# Core packages
INSTALL_ANTIDOTE=true     # πŸ”Œ Plugin manager
INSTALL_STARSHIP=true     # πŸš€ Prompt
INSTALL_K9S=true          # 🐢 K8s TUI

# Optional
INSTALL_NERD_FONT=true    # πŸ”€ Required for icons
INSTALL_APPS=true         # πŸ“¦ Install from apps.txt

⌨️ Key Aliases

πŸ”€ Git

gs              # git status
gp              # git push
gl              # git log --oneline
gco-fzf         # checkout with fuzzy search
gac "msg"       # add all + commit

☸️ Kubernetes

k               # kubectl
kx / kn         # switch context / namespace
kgp             # kubectl get pods
kl              # kubectl logs
ksh             # shell into pod (fzf)

🐳 Docker

dps             # docker ps
dsh             # shell into container
dc              # docker-compose

πŸ—οΈ Terraform

tf              # terraform
tfi / tfp       # init / plan
tfa             # apply

🐹 Mole (System Optimizer)

mo                    # Interactive menu
mo touchid            # Enable Touch ID for sudo (RECOMMENDED!)
mo completion         # Setup shell tab completion
mo status             # Live system health dashboard
mo clean              # Deep cleanup
mo clean --dry-run    # Preview cleanup first
mo analyze            # Visual disk explorer
mo uninstall          # Remove apps + leftovers
mo optimize           # Refresh caches & services
mo purge              # Clean project build artifacts

πŸ’‘ Tips:

  • Always run mo clean --dry-run first to preview
  • Use --debug for detailed logs
  • Supports Vim bindings (h/j/k/l)
  • In mo status, press k to toggle cat, q to quit
  • Optional: Install quick launchers for Raycast/Alfred:
    curl -fsSL https://raw.githubusercontent.com/tw93/Mole/main/scripts/setup-quick-launchers.sh | bash

πŸ€– OpenCode (AI Terminal Agent)

opencode                      # Start AI coding session
opencode --version            # Check version

πŸ’‘ Oh My OpenCode (Multi-Agent Extension):

# Install Oh My OpenCode for enhanced multi-agent capabilities
npx oh-my-opencode install
# Or with bun
bunx oh-my-opencode install

Features: Background agents, Git mastery, multi-model support (Claude/ChatGPT/Gemini)


πŸ“š Documentation

Guide Topics
πŸ› οΈ CLI Tools eza, fzf, ripgrep, bat, btop
☸️ DevOps Tools kubectl, helm, terraform
πŸ”Œ ZSH Plugins Plugins explained
πŸ”€ Git Workflow Aliases, lazygit, gh
🍎 macOS Apps Warp, OrbStack, Lens
⚑ Productivity Workflows & shortcuts

πŸ—‘οΈ Uninstall

./uninstall.sh              # Interactive menu
./uninstall.sh --config     # Use uninstall_config.sh

πŸ“ Project Structure

shell-bootstrap/
β”œβ”€β”€ πŸ“„ bootstrap.sh          # Main installer
β”œβ”€β”€ πŸ“„ uninstall.sh          # Uninstaller
β”œβ”€β”€ βš™οΈ config.sh             # Installation config
β”œβ”€β”€ 🍺 Brewfile              # Desktop apps list
β”œβ”€β”€ πŸ“š docs/                 # Documentation
└── 🐚 shell/
    β”œβ”€β”€ zsh/
    β”‚   β”œβ”€β”€ aliases.zsh      # 200+ aliases
    β”‚   β”œβ”€β”€ functions.zsh    # Utility functions
    β”‚   β”œβ”€β”€ exports.zsh      # Environment vars
    β”‚   β”œβ”€β”€ tools.zsh        # Tool init
    β”‚   └── plugins.list     # Antidote plugins
    β”œβ”€β”€ starship/
    β”‚   └── starship.toml    # Prompt config
    └── zellij/
        └── config.kdl       # Multiplexer config

πŸ’» Compatibility

Platform Status
Apple Silicon (M1/M2/M3/M4) βœ… Native
Intel Mac βœ… Compatible

🀝 Contributing

Contributions welcome! Please open an issue or PR.


Keywords: macOS terminal setup, zsh configuration, DevOps shell, Starship prompt, Kubernetes tools, kubectl aliases, terraform shortcuts, docker aliases, productivity shell, developer terminal, Apple Silicon terminal, M1 Mac terminal setup, dotfiles, shell bootstrap

About

Automated macOS terminal setup for DevOps & SREs. Includes Zsh config, Starship prompt, fzf, and 200+ aliases for kubectl, docker, and terraform. Apple Silicon native.

Topics

Resources

Stars

Watchers

Forks