My
Terminal

back to main page
user@mac [/Users/user] $ ll Developer
total 0
drwxr-xr-x   5 user  staff   160B Sep 28 12:00 .
drwxr-xr-x  24 user  staff   768B Sep 28 11:17 ..
drwxr-xr-x  12 user  staff   384B Sep 28 11:17 Projects
user@mac [/Users/user] $ gti status
zsh: command not found: gti
user@mac [/Users/user] $ myip
203.0.113.42
user@mac [/Users/user] $ projects
Green — valid command, red — typo, dim — autosuggestion from history (press → to accept).

Setup in 5 steps:

All at once

One command does all 5 steps below: it asks before changing anything and backs up your ~/.zshrc. Read the script first — it's short.
  1. Install Homebrew

    The package manager for macOS. Skip if brew already works. At the end the installer prints two commands to add brew to your shell — run them.
  2. Install zsh plugins and the font

    zsh-autosuggestions suggests commands from your history as you type, zsh-syntax-highlighting colors commands green or red before you hit Enter. The font is SF Mono with Nerd Font icons and ligatures.
  3. Import the Brogrammer theme

    My exported Terminal.app profile: pure black background with blur, SF Mono 17pt, blinking bar cursor, Option as Meta key. Download and double-click it, or run:
    Then make it the default: Terminal → Settings → Profiles → Brogrammer → Default.
    Brogrammer.terminal
  4. Install the .zshrc

    Aliases, shared history between tabs, the user@host [path] prompt and plugins. Your current file is backed up to ~/.zshrc.bak.
  5. Reload

    Open a new Terminal window or reload the config in the current one.

The .zshrc:

~/.zshrc
Download
Show all 58 lines
# ~/.zshrc — Shattershard terminal setup
# https://shattershard.com/terminal

export PATH="/usr/local/sbin:$PATH"

# ---------- Network ----------
alias connections='sudo lsof -i -n -P'   # Show open network connections
alias myip='curl ident.me'               # Show your external IP
alias hosts='sudo nano /etc/hosts'       # Edit /etc/hosts
alias bettercap-ui='sudo bettercap -caplet http-ui'   # Bettercap web UI
# Wi-Fi diagnostics (deprecated on macOS 14.4+, still handy on older systems)
alias airport='/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport'

# ---------- Shortcuts ----------
alias c='clear'     # Clear the terminal
alias h='history'   # Show command history
alias k9='kill -9'  # Kill a process with SIGKILL

# ---------- Navigation ----------
alias ..='cd ..'
alias ...='cd ../..'
alias home='cd ~'
alias rt='cd /'
alias downloads='cd ~/Downloads'
alias desktop='cd ~/Desktop'
alias documents='cd ~/Documents'
alias projects='cd ~/Developer/Projects'

# ---------- Listing ----------
alias ll='ls -lah'  # Detailed list, human-readable sizes
alias la='ls -A'    # All files except . and ..
alias l='ls -CF'    # Columns with type markers

# ---------- History ----------
HISTFILE=~/.zsh_history
HISTSIZE=5000
SAVEHIST=10000
setopt SHARE_HISTORY        # Share history between open terminals
setopt INC_APPEND_HISTORY   # Save each command right away
setopt HIST_IGNORE_DUPS     # Skip consecutive duplicates

# ---------- Prompt: user@host [path] $ ----------
export PS1="%B%F{green}%n@%m %F{yellow}[%d]%b%f \$ "

export EDITOR=nano
export VISUAL="$EDITOR"

# ---------- Secrets ----------
# Never put API keys or tokens here — keep them in a separate file
# that is not synced or committed anywhere:
#   echo 'export DO_TOKEN="..."' >> ~/.zsh_secrets && chmod 600 ~/.zsh_secrets
[ -f ~/.zsh_secrets ] && source ~/.zsh_secrets

# ---------- Plugins (brew install zsh-autosuggestions zsh-syntax-highlighting) ----------
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=23'
source "$HOMEBREW_PREFIX/share/zsh-autosuggestions/zsh-autosuggestions.zsh"
# syntax-highlighting must be sourced last
source "$HOMEBREW_PREFIX/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"

Aliases cheat sheet:

connections
Show open network connections
myip
Show your external IP
hosts
Edit /etc/hosts
bettercap-ui
Start Bettercap web UI
airport
Wi-Fi diagnostics
c
Clear the terminal
h
Show command history
k9 <pid>
Kill a process with SIGKILL
.. / ...
Go up one / two levels
home / rt
Go to ~ / to /
downloads
cd ~/Downloads
desktop
cd ~/Desktop
documents
cd ~/Documents
projects
cd ~/Developer/Projects
ll
Detailed list with sizes
la
All files except . and ..
l
Columns with type markers
Vaporwave radio