Oh My Zsh
Configuration Guide
Complete reference for your optimized terminal workflow with Claude Code, ClaudeKit, and WordPress development.
Quick Start
Install Plugins
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestionsEdit Config
nano ~/.zshrcor code ~/.zshrc for VS Code
Reload
source ~/.zshrcor use alias zshreload
Essential Plugins
Git aliases va auto-completion
gst → git status gaa → git add --all gcmsg → git commit -mDocker auto-completion
plugins=(... docker docker-compose ...)Jump to frequently used directories
z wordpress → Jump to dir containing "wordpress"Goi y lenh tu history. Press → to accept.
Highlight syntax khi go lenh. ✓ valid / ✗ invalid
Giai nen moi format
x filename.zip → Extract any archiveSearch tu terminal
google "oh my zsh tips"macOS specific utilities
pfd Print Finder dir cdf CD to Finder dirCustom Aliases
Claude Code & ClaudeKit
ccclaude-codeccdclaude-code . (current dir)ckclaudekitcchelpclaude-code --helpWordPress Development
wp-sitescd ~/Siteswp-logstail -f nginx error logwp-clearwp cache flushwp-debugtail -f debug.logDocker Shortcuts
dcudocker-compose up -ddcddocker-compose downdcldocker-compose logs -fdcrdocker-compose restartdpsdocker psdstopdocker stop $(docker ps -q)Git Workflow
gstgit statusgaagit add --allgcmgit commit -mgpgit pushglgit pullgcogit checkoutgcbgit checkout -bgloggit log --graphgstashgit stashQuick Navigation
..cd .. (up one level)...cd ../.. (up two)....cd ../../.. (up three)~cd ~ (go home)System Utilities
cpwdCopy current pathfhereOpen Finder hereshowfilesShow hidden fileshidefilesHide hidden fileszshconfigEdit .zshrczshreloadReload configCustom Functions
Tao va vao thu muc moi
mkcd new-projectBackup file voi timestamp
backup config.php→ config.php.backup.20250129_143000
Find process on port
port 3000Kill process on port
killport 3000Search va replace in files
search-replace 'old-text' 'new-text'Restart server services
restart-nginx restart-phpPro 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