Developer Tools

Oh My Zsh
Configuration Guide

Complete reference for your optimized terminal workflow with Claude Code, ClaudeKit, and WordPress development.

v1.0
Getting Started

Quick Start

1

Install Plugins

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
2

Edit Config

nano ~/.zshrc

or code ~/.zshrc for VS Code

3

Reload

source ~/.zshrc

or use alias zshreload

Plugins

Essential Plugins

gitBuilt-in

Git aliases va auto-completion

gst → git status   gaa → git add --all   gcmsg → git commit -m
dockerBuilt-in

Docker auto-completion

plugins=(... docker docker-compose ...)
zNavigation

Jump to frequently used directories

z wordpress → Jump to dir containing "wordpress"
zsh-autosuggestionsMust Install

Goi y lenh tu history. Press to accept.

zsh-syntax-highlightingMust Install

Highlight syntax khi go lenh. ✓ valid / ✗ invalid

extractUtility

Giai nen moi format

x filename.zip → Extract any archive
web-searchUtility

Search tu terminal

google "oh my zsh tips"
macosSystem

macOS specific utilities

pfd Print Finder dir   cdf CD to Finder dir
Reference

Custom Aliases

Claude Code & ClaudeKit

ccclaude-code
ccdclaude-code . (current dir)
ckclaudekit
cchelpclaude-code --help

WordPress Development

wp-sitescd ~/Sites
wp-logstail -f nginx error log
wp-clearwp cache flush
wp-debugtail -f debug.log

Docker Shortcuts

dcudocker-compose up -d
dcddocker-compose down
dcldocker-compose logs -f
dcrdocker-compose restart
dpsdocker ps
dstopdocker stop $(docker ps -q)

Git Workflow

gstgit status
gaagit add --all
gcmgit commit -m
gpgit push
glgit pull
gcogit checkout
gcbgit checkout -b
gloggit log --graph
gstashgit stash

Quick Navigation

..cd .. (up one level)
...cd ../.. (up two)
....cd ../../.. (up three)
~cd ~ (go home)

System Utilities

cpwdCopy current path
fhereOpen Finder here
showfilesShow hidden files
hidefilesHide hidden files
zshconfigEdit .zshrc
zshreloadReload config
Functions

Custom Functions

mkcd()Utility

Tao va vao thu muc moi

mkcd new-project
backup()Utility

Backup file voi timestamp

backup config.php

→ config.php.backup.20250129_143000

port()Debug

Find process on port

port 3000
killport()Debug

Kill process on port

killport 3000
search-replace()Advanced

Search va replace in files

search-replace 'old-text' 'new-text'
restart-nginx()Server

Restart server services

restart-nginx   restart-php
Tips

Pro Tips

Autosuggestions: Go vai ky tu dau cua lenh cu, thay goi y mau xam → nhan de accept.

Z Plugin Magic: Sau vai lan cd, plugin z se hoc pattern. z wordpress nhay den ngay.

Sudo Shortcut: Quen sudo? Nhan ESC + ESC de them vao lenh.

History Search: Ctrl + R de search trong command history.

View All Aliases: alias hoac alias | grep git

Extract Anything: Plugin extract tu nhan format: x file.zip, x archive.tar.gz

Shortcuts

Keyboard Shortcuts

Navigation

Move to startCtrl + A
Move to endCtrl + E
Move word leftAlt + ←
Move word rightAlt + →

Editing

Delete wordCtrl + W
Clear lineCtrl + U
Clear screenCtrl + L
Cancel commandCtrl + C