惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
Last Week in AI
Last Week in AI
美团技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Apple Machine Learning Research
Apple Machine Learning Research
WordPress大学
WordPress大学
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - Franky
The Cloudflare Blog
罗磊的独立博客
月光博客
月光博客
N
Netflix TechBlog - Medium
C
Check Point Blog
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
IT之家
IT之家
Jina AI
Jina AI
J
Java Code Geeks

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Building a Complete Developer Terminal Setup for Claude C...
Avinash Seet · 2026-04-26 · via DEV Community
Cover image for Building a Complete Developer Terminal Setup for Claude Code — Part 6: Dotfiles and Wrap-up

Avinash Seethalam

By Avinash, GenAI Practice Lead | Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 of 6


A setup you can't reproduce is a setup you'll eventually lose. Hard drives fail, Macs get replaced, and without a dotfiles repo everything built in this series disappears with them. This final part covers packaging everything into a maintainable dotfiles repo and wrapping up the series.


The Dotfiles Repo

A dotfiles repo is a version-controlled collection of your configuration files. The goal is simple: clone the repo on a new machine, follow the checklist, and have a fully configured environment in under an hour.

mkdir ~/dotfiles
cd ~/dotfiles
git init

Enter fullscreen mode Exit fullscreen mode

Copy all configuration files in:

# Claude Code
mkdir -p .claude/hooks
cp ~/.claude/statusline.sh .claude/statusline.sh
cp ~/.claude/hooks/notify-stop.sh .claude/hooks/notify-stop.sh
cp ~/.claude/hooks/notify-permission.sh .claude/hooks/notify-permission.sh
cp ~/.claude/settings.json .claude/settings.json

# Terminal
cp ~/.tmux.conf .tmux.conf
cp ~/.zshrc .zshrc

# Starship
mkdir -p .config
cp ~/.config/starship.toml .config/starship.toml

Enter fullscreen mode Exit fullscreen mode

Commit and push:

git add .
git commit -m "Initial dotfiles — Claude Code, tmux, starship, zsh"
gh repo create dotfiles --private --source=. --push

Enter fullscreen mode Exit fullscreen mode


File Structure

dotfiles/
├── README.md
├── .tmux.conf
├── .zshrc
├── .config/
│   └── starship.toml
└── .claude/
    ├── settings.json
    ├── statusline.sh
    └── hooks/
        ├── notify-stop.sh
        └── notify-permission.sh

Enter fullscreen mode Exit fullscreen mode


Fresh Machine Checklist

The README in the repo contains the full step-by-step setup guide. The checklist at the end covers every action in sequence:

  • [ ] Install Homebrew
  • [ ] Install core dependencies: brew install git jq node fzf
  • [ ] Install iTerm2 and set JetBrains Mono Nerd Font
  • [ ] Set terminal type to xterm-256color
  • [ ] Import tokyo-night color theme
  • [ ] Install zsh-autosuggestions and zsh-syntax-highlighting
  • [ ] Install fzf and run key bindings setup
  • [ ] Install starship and apply tokyo-night preset
  • [ ] Install tmux and clone tpm
  • [ ] Copy .tmux.conf and install plugins with Ctrl+B I
  • [ ] Install Claude Code
  • [ ] Copy .claude/settings.json, statusline.sh, and hook scripts
  • [ ] chmod +x the statusline and hook scripts
  • [ ] Add plugin marketplaces in Claude Code
  • [ ] Install all 9 plugins and reload
  • [ ] Verify plugin counts: 9 plugins · 35 skills · 18 agents · 10 hooks · 2 plugin MCP servers · 1 plugin LSP server
  • [ ] Verify claude-mem worker at http://localhost:37777
  • [ ] Test sound notifications with afplay
  • [ ] Test statusline with mock JSON input
  • [ ] Create tmux sessions and save layout with Ctrl+B Ctrl+S

What I'd Do Differently

If I were starting this setup from scratch with the knowledge I have now, I'd install claude-mem and pyright-lsp on day one. They have the highest ongoing return of anything in the stack — persistent memory and real-time type checking compound in value over time in a way that one-time tools don't.

I'd also build the statusline earlier. Flying blind on token usage and rate limits for the first weeks of Pro plan use cost me more than the hour it took to write the script.

The one thing I'd skip entirely is trying to get visual notification banners working. osascript and terminal-notifier are both unreliable on macOS Sequoia. afplay is the right answer and I should have gone there first.


The Full Stack

Layer Tool Purpose
Terminal iTerm2 + tokyo-night True color, Nerd Font support
Multiplexer tmux + resurrect Persistent sessions, 3-pane layout
Prompt Starship tokyo-night Git, Python, time at a glance
Shell zsh + autosuggestions + fzf Faster command entry
AI IDE Claude Code Primary development tool
Statusline Custom bash script Real-time token/cost/rate limit visibility
Hooks afplay sound notifications Async task completion awareness
Plugins 9 curated plugins Code review, memory, type checking, workflow
Config Private dotfiles repo Reproducible setup in under an hour

The Series

All scripts and configuration files are at https://github.com/ai-with-avinash/claude-code-best-setup.

If you build on this setup or find improvements, I'd genuinely like to know — leave a comment or open a PR on the dotfiles repo.