setup-terminal

setup-terminal is a command for Claude Code from helloayushisharma/ghostty-claude-code-setup. It costs 46 tokens per session (1,142 once invoked), scanned C, original, MIT.

A macOS setup command that detects Ghostty, Warp, iTerm2 or Apple Terminal and configures the terminal and Zsh shell around it. Zsh is the command-line shell used to run text commands on macOS.

In plain words
What is it for?
Use it to install command suggestions, syntax coloring and the lsd file-listing tool, configure terminal themes and key bindings, and add Vim-style editing shortcuts.
Why use it?
It avoids manually finding terminal settings, installing shell enhancements and editing configuration files. Existing configurations are backed up before changes are made.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ghostty-claude-code-setup plugin — 1 skill, 1 command shipped together

Good fit Use it to install command suggestions, syntax coloring and the lsd file-listing tool, configure terminal themes and key bindings, and add Vim-style editing shortcuts.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add helloayushisharma/ghostty-claude-code-setup
Claude Code
/plugin install ghostty-claude-code-setup

Made for: Claude Code.

Or install ghostty-claude-code-setup, the plugin that ships this one along with the rest of its 1 skill, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup-terminal

README.md
[![agentmods](https://agentmods.dev/badge/commands/helloayushisharma/ghostty-claude-code-setup/setup-terminal/github.svg)](https://agentmods.dev/commands/helloayushisharma/ghostty-claude-code-setup/setup-terminal)
Your own site
<a href="https://agentmods.dev/commands/helloayushisharma/ghostty-claude-code-setup/setup-terminal"><img src="https://agentmods.dev/badge/commands/helloayushisharma/ghostty-claude-code-setup/setup-terminal/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setup-terminal

Your own site · 80×15
<a href="https://agentmods.dev/commands/helloayushisharma/ghostty-claude-code-setup/setup-terminal"><img src="https://agentmods.dev/badge/commands/helloayushisharma/ghostty-claude-code-setup/setup-terminal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,142 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.01142
Opus 5.5 $0.00018 $0.00457
Sonnet 5.5 $0.00009 $0.00228
Haiku 4.5 $0.00005 $0.00114

Measured 1mo ago against content hash b2f620746f0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

setup-terminal scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf lsd-v1.2.0-x86_64-apple-darwin*

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

cd /tmp && curl -LO https://github.com/lsd-rs/lsd/releases/download/v1.2.0/lsd-v1.2.0-x86_64-apple-darwin.tar.gz
commands/setup-terminal.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Terminal Setup Command

Set up a complete modern terminal experience on macOS. Auto-detects your terminal emulator.

What This Command Does

  1. Auto-detects terminal (Ghostty, Warp, iTerm2, or Apple Terminal)
  2. Backs up existing configs (creates .backup files)
  3. Installs packages:
    • lsd (colorized ls with icons) - direct binary download
    • zsh-autosuggestions (history suggestions)
    • zsh-syntax-highlighting (command coloring)
  4. Configures detected terminal:
    • Ghostty: Catppuccin theme, transparency, IDE keybindings
    • Warp: Custom theme, keybindings guide
    • iTerm2: Color scheme, key mappings
  5. Configures Zsh:
    • lsd aliases (ls, ll, la, lr, lt)
    • Colored grep, man pages
    • Autosuggestion keybindings
  6. Configures Vim:
    • IDE-like keybindings (Cmd+S, Cmd+Z, etc.)
    • Word/line navigation with Option/Cmd arrows
    • Line numbers, mouse support, system clipboard

Instructions

When the user runs this command:

Step 0: Auto-detect Terminal

# Detect which terminal is running
if [[ -n "$GHOSTTY_RESOURCES_DIR" ]]; then
    DETECTED_TERMINAL="ghostty"
elif [[ "$TERM_PROGRAM" == "WarpTerminal" ]]; then
    DETECTED_TERMINAL="warp"
elif [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
    DETECTED_TERMINAL="iterm"
elif [[ "$TERM_PROGRAM" == "Apple_Terminal" ]]; then
    DETECTED_TERMINAL="terminal"
else
    DETECTED_TERMINAL="unknown"
fi

Inform the user which terminal was detected and ask for confirmation.

  1. Parse arguments to determine scope:

    • --ghostty-only: Only configure Ghostty
    • --zsh-only: Only configure zsh and install packages
    • --vim-only: Only configure vim
    • --all or no args: Do everything
  2. Create backups before modifying any file:

    # For each config file that exists, create a backup
    cp ~/.zshrc ~/.zshrc.backup.$(date +%Y%m%d_%H%M%S)
    cp ~/.vimrc ~/.vimrc.backup.$(date +%Y%m%d_%H%M%S)
    cp "~/Library/Application Support/com.mitchellh.ghostty/config" \
       "~/Library/Application Support/com.mitchellh.ghostty/config.backup.$(date +%Y%m%d_%H%M%S)"
    

Read the full file on GitHub · 114 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 114 lines · 46 tokens per session scan C b2f620746f0c

Subscribe to this mod's changes

setup-terminal is a command published in the GitHub repository helloayushisharma/ghostty-claude-code-setup (4 stars, last pushed 6mo ago), licensed MIT. It adds 46 tokens to every session and 1,142 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.