Bash/Zsh Aliases Generator
Predefined list of useful aliases (ll, la, gs, gd, gco, mkcd, ip) ready to paste into .bashrc or .zshrc.
—
The shell aliases worth having
An alias is text substitution at the start of a command line. The gain is not saving keystrokes — it is making cheap a command you would otherwise avoid for being long, and pinning the right options on commands you always run the same way. Nobody types ls with three flags all day; everybody types ll.
Tick the groups you care about and the page assembles the block. Covered are listing, Git, navigation — including the ones that climb directories, which save a surprising amount — and networking. One detail: the shortcut that creates a directory and enters it is not an alias but a function, because an alias takes no argument in the middle; it only pastes text at the front of the line.
Where to put it depends on the shell and how it starts. In bash, ~/.bashrc is read by an interactive non-login shell, which is the terminal you open in a desktop session; ~/.bash_profile is read at login. Many distributions have the profile source the bashrc precisely to avoid that confusion. In zsh the equivalent is ~/.zshrc. After editing, either open a new terminal or reload with source.
Frequently asked questions
When should I use a function instead of an alias?
How do I run the original command an alias replaced?
Do aliases work inside a script?
Related Tools
Git Aliases Generator
Useful git aliases (st, co, br, lg, undo, save, wip, amend, hist) ready to paste into .gitconfig.
Shell Argument Escaper
Quote a string safely for bash/sh, wrapping in single quotes and handling embedded quotes.
Bash PS1 Generator
Compose PS1 with ANSI colors, user, host, pwd, git branch and last exit code. Live prompt preview.
Minimal .zshrc Generator
Build a lean .zshrc without Oh My Zsh: history, completion, simple prompt with git branch and PATH.
.git-blame-ignore-revs Generator
List of commit hashes for Git to ignore in blame (mass formatters: prettier, black, eslint --fix). Useful for large refactors.
HTML Table Generator
Paste CSV, TSV or semicolon-separated data and instantly generate an HTML table with thead, tbody and live preview.