Zsh
Aliases Commands
Create aliases, suffix aliases, and global aliases to speed up your workflow. Zsh offers more powerful alias features than Bash, including aliases that expand anywhere in a command.
8 commands
Pro Tips
Use global aliases for pipes: 'alias -g G="| grep"' then 'ps aux G node' expands to 'ps aux | grep node'.
Use suffix aliases: 'alias -s json=code' lets you type 'data.json' to open it in VS Code.
List all aliases with 'alias' or find a specific one with 'alias | grep name'. Use 'unalias name' to remove.
Common Mistakes
Global aliases expand everywhere including arguments, which can cause unexpected behavior. Use sparingly.
Aliases are not available in shell scripts by default. Use functions instead of aliases for scripted automation.