Reference

Reference Terminal Aliases & Functions Cheatsheet

Terminal Aliases & Functions Cheatsheet

CheatsheetEvergreenPublic
TerminalZshAliasesProductivityCLIDevtools

Terminal Aliases & Functions Cheatsheet

A comprehensive reference for all custom shell aliases and functions configured in ~/.zsh_aliases.

AliasCommandDescription
..cd ..Go up one directory
...cd ../..Go up two directories
....cd ../../..Go up three directories
.....cd ../../../..Go up four directories
projcd ~/ProjectsJump to Projects folder
herdcd ~/HerdJump to Herd folder
aemcd ~/Projects/aem/authorJump to AEM author
kbcd ~/Projects/kbJump to knowledge base
uxlabcd ~/Projects/uxlabJump to UX Lab
cdf-cd into frontmost Finder window

File Operations

AliasCommandDescription
llls -ltrList files (long format, by time)
lals -AList all including hidden
lllls -laList all with details
fopen -a FinderOpen Finder
oopen .Open current directory
tree3tree -L 3Show tree 3 levels deep
t [n]-Smart tree (excludes .git, node_modules)
dir [n]-Directory tree with limits
mkcd [dir]-Create directory and cd into it

Editors

AliasCommandDescription
ccode-insidersOpen VS Code Insiders
cicode-insidersOpen VS Code Insiders
c.code-insiders .Open current dir in VS Code
wswindsurf .Open current dir in Windsurf
eacode-insiders ~/.zsh_aliasesEdit aliases file
ezcode-insiders ~/.zshrcEdit zshrc file

Git

Basic Commands

AliasCommandDescription
ggitGit shorthand
gsgit status -sbShort status with branch
gagit add .Stage all changes
gcgit commit -mCommit with message
gpgit pushPush to remote
gpugit push -u originPush and set upstream
gplgit pullPull from remote
gfgit fetchFetch from remote
gcogit checkoutCheckout branch
gbgit branchList branches
grvgit remote -vShow remotes
gloggit log --oneline -10Show last 10 commits
glog3git log --oneline -3Show last 3 commits

Quick Actions

AliasCommandDescription
nahgit reset --hard && git clean -df⚠️ Undo everything
wipgit add . && git commit -m 'wip'Quick WIP commit
initgit init && git add . && git commit -m '✨ Initial commit'Initialize repo

Multi-Repo Functions

FunctionDescription
gitpull [branch]Pull in current + titan-common
gitpushPush in current + titan-common
gitaddAdd all in current + titan-common
gitstash [args]Stash in current + titan-common
gitstatusStatus in current + titan-common
gitmerge [branch]Merge in current + titan-common
git-changelog [base]Generate changelog from commits

Package Managers

pnpm (Primary)

AliasCommandDescription
ppnpmpnpm shorthand
i / pipnpm installInstall dependencies
d / pdpnpm devStart dev server
b / pbpnpm buildBuild project
ptpnpm testRun tests
l / plpnpm lintRun linter
lf / plfpnpm lint:fixFix lint errors
tc / ptcpnpm typecheckRun type checker
pabpnpm approve-buildsApprove builds
itcpnpm i && pnpm typecheckInstall + typecheck

bun

AliasCommandDescription
bibun installInstall dependencies
bdbun devStart dev server
brbun runRun script
blbun lintRun linter
blfbun lint:fixFix lint errors
btcbun typecheckRun type checker
btbun run testRun tests

uv

AliasCommandDescription
uvruv run -p .venvRun command in project venv
uvtuv run -p ~/.codex/venvs/toolsRun command in global tools venv

npm

AliasCommandDescription
ninpm installInstall dependencies
nidnpm install -DInstall as dev dependency

Nuxt Clean Rebuilds

AliasDescription
freshRemove .nuxt, .data, node_modules, reinstall (pnpm)
nuxt-resetRemove .nuxt, .data, .output, reinstall (bun)
nuxt-devReset + start dev server
nuxt-lintReset + run linter
nuxt-testReset + run tests
nuxt-checkReset + run typecheck

Java / AEM

Java Version Switching

AliasDescription
java11Switch to Java 11 (for AEM 6.5)
java17Switch to Java 17 (for AEM Cloud)
jvShow Java version

AEM Instance Management

AliasDescription
aem-startStart AEM author instance
aem-stopStop AEM instance
aem-statusCheck if AEM is running
aem-logsTail the error log
aem-errorsShow recent errors

AEM Project Creation

CommandDescription
aem-newInteractive archetype generation
aem-create [name] [group] [title]Create full AEM project
aem-create-spa [name] [group] [title]Create AEM React SPA project

Example:

aem-create mysite com.company "My Site"
aem-create-spa myreactsite com.company "My React Site"

Laravel / PHP

AliasCommandDescription
a / artphp artisanArtisan shorthand
artcphp artisan cache:clearClear cache
artvphp artisan view:clearClear views
artsphp artisan serveStart dev server
artclearall-Clear cache + views + config
mfsphp artisan migrate:fresh --seedFresh migration with seeds
lnewlaravel newCreate new Laravel project
puvendor/bin/phpunitRun PHPUnit
clearlog-Truncate Laravel log
clearlogs-Truncate all Laravel logs

Claude CLI

AliasCommandDescription
clclaudeClaude shorthand
cliclaude /initInitialize Claude in project
cldclaude doctorRun Claude diagnostics
clmclaude mcp listList MCP servers
clhclaude --helpShow help
cldangerclaude --dangerously-skip-permissionsSkip permission prompts

shadcn UI

AliasCommandDescription
shadcnpnpm dlx shadcn@latestRun shadcn CLI
shadcn-addpnpm dlx shadcn@latest addAdd component
shadcn-mcppnpm dlx shadcn@latest mcp initInitialize MCP
shadcn-lyra-Create project with Lyra preset

Networking & System

AliasCommandDescription
pingping -c 5Ping (5 times only)
ip-Show all IP addresses
ip_internipconfig getifaddr en0Internal IP
ip_externcurl ipecho.net/plainExternal IP
reloaddns-Flush DNS cache
ports-Show listening ports
whois-Enhanced WHOIS lookup
weathercurl wttr.inShow weather
HEADcurl -IShow HTTP headers only
killport [port]-Kill process on port

Process Management

AliasCommandDescription
psjavaps aux | grep javaFind Java processes
psgps aux | grepFind processes
pgpgrep -lfProcess grep

macOS Utilities

AliasDescription
tdmToggle dark mode
hidedesktopHide desktop icons (for presentations)
showdesktopShow desktop icons
updateUpdate brew, npm, gem
muppdUpdate macOS + brew

Utilities & Fun

AliasCommandDescription
clsclearClear terminal
pleasesudo $(fc -ln -1)Re-run last command with sudo
sshkey-Copy SSH public key to clipboard
shrug-Copy ¯\(ツ)/¯ to clipboard
hhistory -50Show last 50 commands
hghistory | grepSearch history
debug-Debug Jest with inspector
vmssh vagrant@127.0.0.1 -p 2222SSH to Vagrant

Helper Functions

mkcd [directory]

Create a directory and cd into it.

mkcd my-new-project

proj-init

Initialize a new project with git, README, and CLAUDE.md.

mkdir my-project && cd my-project
proj-init

t [depth]

Show directory tree excluding common folders.

t      # 3 levels (default)
t 5    # 5 levels

Quick Reference Card

Navigation:    ..  ...  proj  herd  aem  cdf
Files:         ll  o  t  mkcd
Editors:       c.  ws  ea  ez
Git:           gs  ga  gc  gp  gpl  nah  wip
pnpm:          i  d  b  l  lf  tc
Nuxt:          fresh  nuxt-dev  nuxt-reset
AEM:           aem-start  aem-stop  aem-logs
Laravel:       a  arts  mfs  artclearall
Claude:        cl  cli  cld  clm
System:        ports  killport  reloaddns  tdm