macos-setup
🐱 Source ☕️ Java SampleGo Sample Angular Sample
  • Mac Setup
  • Getting Started
    • Xcode
    • Homebrew
    • System Preferences
    • Essentials
    • Dotfiles
  • Applications
    • Ghostty
    • Sublime-text
    • JetBrains
    • VSCode
    • Xcode
    • Marta
    • Benthos
    • OrbStack
    • Traefik
    • n8n
  • Platforms
    • Java
    • Node
      • Bub
      • NPM
      • PNPM
      • Turborepo
    • GoLang
    • Rust
    • Python
      • Agno AI
  • DevOps
    • Development Workflow
      • Git
        • GitHub CLL
      • GitOps
      • Documentation
      • mkcert
      • YubiKey
    • Monorepo
    • dnsmasq
    • Docker
    • Skaffold
    • Kubernetes
    • Helm
    • Kustomize
    • kustomizer
    • Terraform
    • Security
    • Cloud
      • gcloud
      • azure
      • aws
  • Tips
    • Git
    • MacOS
Powered by GitBook
On this page
  • Prerequisites
  • Install
  • Configuration
  • Extensions
  • Prompt
  • ls & ll
  • Shell Completions
  • Reference

Was this helpful?

Edit on GitHub
  1. Applications

Ghostty

PreviousApplicationsNextSublime-text

Last updated 1 month ago

Was this helpful?

is a fast, feature-rich, and cross-platform terminal emulator that uses platform-native UI and GPU acceleration.

[!NOTE] We are switching to Ghostty terminal from

The Ultimate Guide to Your Terminal Makeover

Prerequisites

Install

# if you haven't already installed ghostty, run:
brew install --cask ghostty

Configuration

Zero Configuration Philosophy - Ghostty is designed to work out of the box with no configuration for most users.

Extensions

Prompt

brew install starship
# after install, run:
echo 'eval "$(starship init zsh)"' >> ~/.zshrc

Usage:

starship explain # Explains the currently showing modules
starship module golang # Prints a specific prompt module
starship print-config # Prints the computed starship configuration

ls & ll

brew install eza

Usage:

eza --long --header --group --git
alias ls='eza  --header --group --git --long'
alias ls.tree='eza --header --group --tree --level=2  --git --long --icons'

alias ll='eza --header --group --long --all'
alias ll.tree='eza --header --group --tree --level=2  --git --long --icons --all'

Shell Completions

brew install zsh-completions
# To opt-in to using completions for external commands
brew completions link
# You may also need to force rebuild `zcompdump`:
rm -f ~/.zcompdump; compinit
# Additionally, if you receive "zsh compinit: insecure directories" warnings when attempting to load these completions, you may need to run this:
chmod -R go-w $(brew --prefix)/share/zsh
compaudit | xargs chmod g-w
# install zsh-autosuggestions
brew install zsh-autosuggestions
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
# install zsh-syntax-highlighting
brew install zsh-syntax-highlighting
source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

Search previous used commands using Arrows

Arrows
Result

↑ ↓

History Search

^ i

Completion Search

⌥ + ← →

Jump Word

⌘ + ← →

Jump line beginning / end

Add following to ~/.zshrc

autoload -U history-search-end
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey "^[[A" history-beginning-search-backward-end
bindkey "^[[B" history-beginning-search-forward-end

Reference

Fonts should be installed as described in section.

We will be using for prompt.

You can further Prompt by editing ~/.config/starship.toml. We providePreset with some cool icons and kubecontext enabled.

We will be replacing ls with : Colours, Grid view, Long view, Tree view, Git integration, Filtering and Icons Note: The icon characters must be present in the font you are using in your terminal

We also added following alias to our , which is sourced from ~/.zshrc

We will be installing , and

Search Previous Used Commands using arrows.

Configuration

starship
configure
starship.toml
eza
Features
alias file
zsh-completions
zsh-autosuggestions
zsh-syntax-highlighting
up and down arrows - history search
Docs
Ghostty
iterm2
Essentials
ghostty