Crafted by John Guthrie - AI Builder & Entrepreneur from South Africa πΏπ¦ Powered by Xstra AI β¨ | Enabled by Astrata Cloud π€οΈ | Building IntelliCommerce π
The definitive Ghostty terminal dotfiles collection for modern developers in 2025. This isn't just another dotfiles repositoryβit's a production-ready development environment optimized for AI-assisted coding, performance, and developer productivity.
This isn't just another dotfiles collection. It's a production-ready development environment that leverages the latest 2025 terminal technologies:
- π₯ Ghostty Terminal Integration - Harnesses native GPU acceleration and shell integration
- π€ AI-Powered Workflow - Integrated with Ollama for local AI and GitHub Copilot for cloud AI.
- β‘ Performance First - Lazy loading, instant prompts, and optimized startup times
- π¨ Beautiful & Functional - Modern CLI tools with rich syntax highlighting and icons
- π οΈ Developer-Focused - Built by developers, for developers
- Natural Language to Command: Use the
ai
,aik
, andaie
commands to translate plain English into executable shell commands. ai [prompt]
: Executes the suggested command immediately.aik [prompt]
: Asks for confirmation before running the command.aie [prompt]
: Allows you to edit the suggested command before execution.- Local LLM Integration: Powered by your own local Ollama instance for privacy and offline capability.
- Command Correction: (Coming Soon) Get suggestions for correcting failed commands.
Our AI helper now uses advanced performance optimizations for near-instant command generation:
- Fast Model Default: Uses
phi3:mini
by default - Microsoft's lightning-fast model optimized for command generation - Model Keep-Alive: Models stay loaded in memory for 1 hour, eliminating cold-start delays
- JSON Mode Output: Structured responses for 100% reliable command parsing
- Model Flexibility: Switch models via environment variables (
OLLAMA_MODEL=llama3:8b
) - Smart Error Handling: Automatic model availability checks and helpful setup hints
Performance Comparison:
- First run: ~3-5 seconds (model loading)
- Subsequent runs: ~1-2 seconds (model cached)
- Previous version: ~45 seconds per request π β New version: ~1-2 seconds β‘
# Quick setup for AI features
./scripts/setup-ai.sh
# Usage examples (now lightning fast!)
ai list all python files modified today
aik find large files over 100MB
aie show git status with colors
# Use different models for specific needs
export OLLAMA_MODEL='llama3:8b'
ollama pull llama3:8b
ai analyze this git repository structure
- π€ Native Shell Integration with automatic injection for zsh, bash, fish
- β‘ Advanced Prompt Navigation with
cmd+up/down
for jumping between prompts - π― Smart Cursor Behavior - bar at prompt, block in applications
- π Semantic Selection with
triple-click+cmd
for command output selection - π±οΈ Alt+click positioning for precise cursor placement
- π¨ Built-in Theme Support with automatic light/dark mode switching
- β‘ GPU Acceleration with Metal on macOS for superior performance
- π Enhanced Keybindings with performable actions and global shortcuts
- π» VS Code Integration with optimized keybindings and settings
- β‘ Powerlevel10k theme with instant prompt for ultra-fast startup
- π Modern plugins carefully selected to complement Ghostty features
- πΌ Development-focused aliases and functions for 2025 workflows
- π³ Git workflow enhancements with semantic selection support
- π οΈ Modern command replacements (eza, bat, fd, ripgrep, fzf, bottom, etc.)
- π¦ Language version managers with lazy loading for performance
- π FZF integration for enhanced fuzzy finding and navigation
- π Performance optimized to work with Ghostty's native capabilities
- βοΈ Complete settings configuration optimized for Ghostty
- π¨ Font and theme consistency between terminal and editor
- π Recommended extensions for modern development
- π€ GitHub Copilot optimization settings
- π± Terminal profile specifically configured for Ghostty
- π Intelligent settings merging preserves existing configurations
- π¦ Package managers: npm, yarn, bun
- π Runtime managers: nvm (lazy-loaded), pyenv, rustup
- π Language support: Node.js, Python, Go, Rust, Deno
- π³ Container tools: Docker, Kubernetes with enhanced aliases
- π§ Modern CLI tools: gh (GitHub CLI), httpie, tldr, zoxide
- π Enhanced git workflow with delta, GitLens integration
ghostty-terminal-dotfiles/
βββ π README.md # This comprehensive documentation
βββ π CHANGELOG.md # Version history and migration notes
βββ π§ install.sh # Enhanced installation script
βββ π€ ai/
β βββ ghostty_ai.py # Python script for Ollama integration
βββ π» ghostty/
β βββ config # Ghostty terminal configuration
βββ π scripts/
β βββ backup.sh # Backup script for existing configs
β βββ check-versions.sh # Script to check tool versions
β βββ sync.sh # Script to sync local changes
β βββ update-tools.sh # Script to update tools
β βββ validate-all.sh # Validation script for all configs
βββ π» vscode/
β βββ settings.json # VS Code settings
βββ π zsh/
βββ .zshrc # Main Zsh configuration file
βββ aliases.sh # Zsh aliases
Before installing, ensure you have:
-
macOS (primary supported platform)
-
Ghostty Terminal - Download from ghostty.org
-
VS Code - Download from code.visualstudio.com
-
Homebrew (recommended) - Install with:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
git clone https://github.com/jlfguthrie/ghostty-terminal-dotfiles.git && cd ghostty-dotfiles && ./install.sh
Before installing, ensure you have:
-
π macOS (primary supported platform)
-
π» Ghostty Terminal - Download from ghostty.org
-
π» VS Code - Download from code.visualstudio.com
-
πΊ Homebrew (recommended) - Install with:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
π₯ Clone the repository:
git clone https://github.com/jlfguthrie/ghostty-terminal-dotfiles.git cd ghostty-dotfiles
-
π Run the installation script:
./install.sh
-
π Restart Ghostty or reload configuration:
source ~/.zshrc
-
π¨ Configure Powerlevel10k (first time):
p10k configure
The installation script will:
- β Install Oh My Zsh with Powerlevel10k theme
- β Install 25+ modern development tools via Homebrew
- β Configure Ghostty for optimal development experience
- β Set up VS Code integration with recommended extensions
- β Create timestamped backups of existing configurations
- β Install enhanced Zsh configuration with 200+ aliases
-
Set Ghostty as Default Terminal:
- Go to System Settings β General β Default web browser
- Set terminal to Ghostty
-
Install VS Code Command Line Tools:
- Open VS Code
- Press
Cmd+Shift+P
- Type "Install 'code' command in PATH"
-
Configure Git (if not already done):
git config --global user.name "Your Name" git config --global user.email "your.email@example.com"
-
Test Ghostty Features:
- Use
cmd+up/down
to navigate between prompts - Try
cmd+click
to select command output - Test
alt+click
to position cursor
- Use
- Prompt Navigation:
cmd+up/down
to jump between command prompts - Semantic Selection:
cmd+triple-click
to select command output - Cursor Positioning:
alt+click
to move cursor to click location - Configuration Reload:
cmd+shift+,
to reload Ghostty config - Theme Switching: Automatic light/dark mode following system
# Quick commits
gquick "Your commit message"
# Create and push new branch
gnew feature-branch-name
# Interactive branch switching (with fzf)
fgco
# Enhanced git status
gs # Short, colorized status with branch info
# Enhanced file listing
ls # eza with icons and git status
ll # detailed listing with timestamps
tree # directory tree with icons
# Better text processing
cat file.txt # bat with syntax highlighting
grep pattern # ripgrep with smart case
find . -name # fd with better performance
# System monitoring
top # bottom with better interface
ps # procs with enhanced output
du # dust with visual directory sizes
# Quick project initialization
initproj myproject node # Creates Node.js project
initproj myapp python # Creates Python project with venv
initproj myservice go # Creates Go module
# VS Code integration
c. # Open current directory in VS Code
cproj name # Open project from ~/dev/name
fcode # Fuzzy find and open file in VS Code
# Docker shortcuts
dps # Pretty docker ps output
fdocker # Interactive container management with fzf
# Kubernetes shortcuts
k # kubectl alias
kgp # Get pods with wide output
kshell # Interactive pod shell access
Create these files for local customizations that won't be committed:
~/.zshrc.local
- Local zsh configurations~/.aliases.local
- Local aliases and functions~/.zshrc.work
- Work-specific configurations
The installer preserves your existing VS Code settings while adding Ghostty optimizations. You can manually edit:
code "$HOME/Library/Application Support/Code/User/settings.json"
Edit Ghostty config directly:
ghostty-config # Opens config in VS Code
After making changes, reload with cmd+shift+,
in Ghostty.
fcd # Fuzzy find and change directory with preview
fgco # Fuzzy find and checkout git branch
fkill # Interactive process killer
fdocker # Interactive Docker container management
serve 8080 # Start HTTP server on port 8080
json '{"key":"val"}'# Format and validate JSON
extract file.zip # Extract any archive format
weather london # Get weather information
sysinfo # Display system information
timer 300 # Set a 5-minute timer with notification
Shell integration not working:
echo $GHOSTTY_RESOURCES_DIR # Should show Ghostty resources path
Slow shell startup:
- Check that NVM is lazy-loaded (it should be with this config)
- Run
time zsh -i -c exit
to measure startup time
VS Code terminal not using Ghostty:
- Check VS Code settings:
"terminal.external.osxExec": "Ghostty.app"
- Restart VS Code after installation
Missing modern tools:
brew install eza bat fd ripgrep fzf # Install missing tools manually
- Check the Ghostty documentation
- Review our troubleshooting guide
- Open an issue in this repository
- Join the Ghostty Discord
cd path/to/ghostty-terminal-dotfiles
git pull origin main
./install.sh # Re-run installer to apply updates
./scripts/sync.sh # Sync local changes back to repository
./scripts/backup.sh # Create manual backup before major changes
-
Install Ghostty Terminal (June 2025 version)
# Download from official website (recommended) # Visit: https://ghostty.org/download # Or build from source for latest features # Visit: https://ghostty.org/docs/install/build
-
Install Homebrew (for modern development tools)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
Install required fonts
brew tap homebrew/cask-fonts brew install --cask font-jetbrains-mono-nerd-font
-
Clone this repository
git clone https://github.com/jlfguthrie/ghostty-terminal-dotfiles.git ~/dev/scripts/ghostty-dotfiles cd ~/dev/scripts/ghostty-terminal-dotfiles
-
Run the enhanced installation script
chmod +x install.sh ./install.sh
The installer will:
- Install Oh My Zsh and Powerlevel10k
- Install modern development tools (eza, bat, fd, ripgrep, etc.)
- Configure Ghostty with optimized settings
- Set up VS Code integration
- Create comprehensive backups
-
Restart Ghostty and enjoy the enhanced experience
# Or source the configuration source ~/.zshrc
-
Configure Powerlevel10k (first-time setup)
p10k configure
-
Backup your existing configurations
cp ~/.zshrc ~/.zshrc.backup cp ~/.config/ghostty/config ~/.config/ghostty/config.backup
-
Create symbolic links
# Zsh configuration ln -sf ~/dev/scripts/ghostty-terminal-dotfiles/zsh/.zshrc ~/.zshrc # Ghostty configuration mkdir -p ~/.config/ghostty ln -sf ~/dev/scripts/ghostty-terminal-dotfiles/ghostty/config ~/.config/ghostty/config
- Automatic Shell Integration: Detects and injects integration for zsh automatically
- Prompt Navigation:
cmd+up/down
to jump between command prompts - Semantic Selection:
triple-click+cmd
to select command output - Smart Cursor: Bar cursor at prompt, block cursor in applications
- Alt+Click Positioning: Click to position cursor during text editing
- Native Theme Support: Automatic light/dark mode theme switching
- GPU Acceleration: Metal renderer on macOS for superior performance
- Working Directory Inheritance: New terminals open in the last focused location
- Powerlevel10k: Ultra-fast prompt with instant prompt feature
- Smart History: Optimized history management with deduplication
- Development Aliases: Git, Docker, Kubernetes, and modern CLI tool shortcuts
- VS Code Integration: Quick project navigation and file operations
- Modern Tools: Integration with eza, bat, fd, ripgrep, fzf, and more
- Performance Focus: Configurations optimized to work with Ghostty's speed
- Terminal Settings: Ghostty configured as default external terminal
- Font Harmony: Matching font configuration between editor and terminal
- Environment Variables: Proper TERM and COLORTERM settings
- Keybinding Consistency: Familiar shortcuts across both environments
# Modern command replacements
ll # Enhanced directory listing with exa
cat # Syntax highlighted with bat
find # Fast search with fd
grep # Better search with ripgrep
# Git shortcuts
gs # git status
ga # git add
gc # git commit
gp # git push
gl # git pull
# Development
code . # Open current directory in VS Code
serve # Quick HTTP server
weather # Get weather information
To keep your configurations in sync across multiple machines:
-
Push changes to repository
cd ~/dev/scripts/ghostty-terminal-dotfiles ./scripts/sync.sh
-
Pull updates on other machines
cd ~/dev/scripts/ghostty-terminal-dotfiles git pull origin main source ~/.zshrc
Edit zsh/.zshrc
and add your custom configurations:
# Add custom aliases
alias myalias="command"
# Add custom functions
myfunction() {
# Your function code
}
# Add custom exports
export MY_VARIABLE="value"
Edit ghostty/config
to customize terminal behavior:
# Change font
font-family = "Your Preferred Font"
# Modify theme
theme = "Your Preferred Theme"
# Adjust transparency
background-opacity = 0.9
-
Powerlevel10k not loading
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
-
Plugins not working
# Reinstall plugins rm -rf ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
-
Ghostty config not loading
# Check config location ls -la ~/.config/ghostty/config # Restart Ghostty completely killall ghostty && open -a Ghostty
Feel free to submit issues and enhancement requests!
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Oh My Zsh community
- Powerlevel10k theme
- Ghostty Terminal developers
- Various plugin authors and contributors
Note: This configuration is optimized for macOS with Ghostty terminal and VS Code. Adjustments may be needed for other platforms or terminals.