Shell Alias Generator
Enter a long command and a short name — get ready-to-paste alias definitions for bash, zsh, and fish, plus instructions to make them permanent.
Configure Alias
Simple Alias
Function Form (with argument support)
Accepts extra arguments — type to pass additional flags.
Make It Permanent
Fish Abbreviation recommended
Abbreviations expand inline as you type — you see the full command before pressing Enter.
Frequently Asked Questions
What is a shell alias?▼
A shell alias is a shortcut that maps a short name to a longer command. For example, alias k='kubectl' lets you type k instead of kubectl. Aliases are evaluated by the shell before command lookup, so they can override built-in commands and save significant typing in repetitive workflows.
What is the difference between bash and zsh alias syntax?▼
Bash and zsh use identical alias syntax: alias name='command'. The difference is where you put them — bash reads ~/.bashrc (interactive non-login) and ~/.bash_profile (login shells), while zsh reads ~/.zshrc. Both support the same quoting rules. zsh also supports global aliases (alias -g) that expand anywhere in a command line, not just at the start.
How do fish shell aliases differ from bash/zsh?▼
Fish uses a different syntax: alias name 'command' (no equals sign) or the more powerful abbr --add name command. Fish abbreviations (abbr) expand inline as you type — you see the full command before running it, which is more transparent. Fish aliases go in ~/.config/fish/config.fish or individual files in ~/.config/fish/functions/.
How do I make an alias permanent?▼
Add the alias definition to your shell's config file: ~/.bashrc for bash, ~/.zshrc for zsh, or ~/.config/fish/config.fish for fish. After editing, reload with source ~/.bashrc (or source ~/.zshrc). Aliases defined in the terminal without adding to the config file only last for the current session.
When should I use a function instead of an alias?▼
Use a function when you need to handle arguments in a complex way, use conditionals, or do more than one thing. Aliases pass all arguments verbatim to the end of the command — you cannot reference $1, $2, etc. Functions let you do: function deploy { git push && ssh server 'cd app && git pull'; }. For commands that need argument manipulation, a function is always more flexible.
Can I use an alias that accepts arguments?▼
Standard aliases cannot reference positional arguments. To pass arguments at a specific position you need a function. However, for simple appending use cases — like alias grep='grep --color=auto' — arguments added by the user are automatically appended after the alias expansion, so alias ls='ls -la' then typing ls /tmp works correctly.
Related Products
on GumroadDeveloper Cheat Sheet Bundle
10 print-ready cheat sheets for the tools developers use every day: Git, Docker, Linux CLI, SQL, Regex, HTTP Status codes, VS Code shortcuts, Bash scripting, jq/JSON, and Markdown.
Buy on Gumroad →Developer Productivity Toolkit
Complete dev environment setup: VS Code settings, keybindings, snippets, shell aliases, Git hooks, tmux config, and Starship prompt. Copy, paste, code faster.
Buy on Gumroad →Premium Workflow Pack
Production-grade workflows, architecture guides, and deployment scripts for teams that ship. 10 advanced CI/CD workflows (blue-green, canary, E2E, security), 5 architecture deep-dives, code review checklist, PR process guide, and 5 battle-tested Bash deployment scripts.
Buy on Gumroad →You Might Also Need
Shell Script Linter
Lint Bash and shell scripts online. Detects unquoted variables, missing set -e, unsafe rm -rf, useless cat, backtick usage, and portability issues with line annotations and fix suggestions.
Open free tool →
chmod Calculator
Calculate Unix/Linux file permissions visually. Toggle read/write/execute checkboxes and instantly see octal notation (755), symbolic (rwxr-xr-x), and the ready-to-run chmod command.
Open free tool →
Docker Compose Generator
Generate docker-compose.yml configurations visually in your browser. Add services, ports, volumes, environment variables, and networks. Export production-ready YAML instantly. Free Docker tool.
Open free tool →
More Free Tools
Related Articles
Ultimate Terminal Productivity Setup for Developers 2026
A complete guide to building a high-productivity terminal environment in 2026: shell selection, plugin managers, terminal emulators, multiplexers, dotfiles management, shell history, and prompt configuration — with real config examples.
Best Terminal Emulators Compared: iTerm2, Warp, Alacritty, Windows Terminal, and More
Compare the best terminal emulators in 2025: Warp, iTerm2, Alacritty, kitty, WezTerm, Hyper, and Windows Terminal. Performance, GPU rendering, and customization.
Chmod Calculator: Understand Linux File Permissions Without Memorizing Octal
Use a chmod calculator to set Linux file permissions correctly. Convert between symbolic and octal notation, understand rwx bits, and avoid common permission mistakes.
Tmux Tutorial: The Complete Developer Workflow Guide (2026)
Learn tmux from scratch — sessions, windows, panes, scripts, and a complete developer workflow. Covers tmux 3.x with configuration examples, copy-mode navigation, and pair programming setups.
Linux Command Line Basics: 15 Commands You Need to Know
Master 15 essential Linux terminal commands for navigation, file management, text processing, permissions, and process control — with practical examples.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →