.bashrc / .zshrc Alias & Config Manager
Build shell aliases, functions, exports, and PATH edits in a visual editor, then export a clean, commented .aliases file sourced from both .bashrc and .zshrc — with shadowing detection against shell builtins and common CLI tools, function suggestions when args are needed, starter packs (git, docker, kubectl, navigation, safety, ls, dev, devops, data science), import of existing rc files, dedupe, history (localStorage), and shareable URL. 100% client-side.
About .bashrc / .zshrc Alias & Config Manager
Build shell aliases, functions, exports, and PATH edits in a visual editor, then export a clean, commented .aliases file sourced from both .bashrc and .zshrc — with shadowing detection against shell builtins and common CLI tools, function suggestions when args are needed, starter packs (git, docker, kubectl, navigation, safety, ls, dev, devops, data science), import of existing rc files, dedupe, history (localStorage), and shareable URL. 100% client-side. Everything runs locally in your browser — your data never leaves your device.
How to use
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.
FAQ
How does the alias manager work?
Add aliases (name → command) with an optional description, group them by category (git, docker, kubectl, navigation, safety, ls, dev, devops, data science), add shell functions for commands that need positional arguments ($1, $@), set exports (env vars) and PATH-prepend/append entries, then export a single commented .aliases file. The tool also emits the exact two-line sourcing snippet for both .bashrc and .zshrc so the same file works in both shells.
What is alias shadowing and how does the linter detect it?
Shadowing happens when an alias name overrides a real command — for example `alias ls='ls -la'` or `alias rm='rm -i'`. The bundled linter ships with the full bash/zsh builtin list (~50 commands like cd, export, source) plus a list of ~80 common CLI tools (git, docker, kubectl, vim, python, grep, …) and warns you when an alias collides. It also flags recursive aliases (`alias x='x …'`) and cases where a function should be used because the command references $1, $@, $#, or $2.
Can I import my existing .bashrc or .aliases file?
Yes. Paste the contents of your existing .bashrc, .zshrc, or .aliases file and the parser extracts alias lines (`alias name='value'`), export lines (`export KEY=value`), PATH manipulations (`export PATH=/foo:$PATH`), and one-line function definitions, plus any `# description` comments above each entry. Imported aliases are then merged with your current config, deduplicated by name.
Why use functions instead of aliases?
Aliases can't take positional arguments. `alias greet='echo Hello $1'` won't work — when you run `greet World` the shell expands the alias to `echo Hello $1 World` and `$1` is empty inside an alias. The linter detects commands referencing $1, $@, $#, or $2 and suggests converting them to a function: `greet() { echo "Hello $1"; }`. Functions also let you write multi-step logic and use `local` variables.
What extra features does this tool have versus hand-editing my rc files?
(1) Visual editor for aliases, functions, exports, and PATH entries. (2) Starter packs for git, docker, kubectl, navigation, safety, ls, dev, devops, and data science. (3) Shadowing linter against 50+ shell builtins and 80+ common CLI tools. (4) Function-needed detector (catches $1/$@ misuse). (5) Recursive-alias guard. (6) bash-only / zsh-only flagging. (7) Import existing .bashrc/.zshrc/.aliases with comment-aware parsing. (8) Dedupe aliases by name. (9) Grouped, commented .aliases output. (10) .bashrc + .zshrc sourcing snippet generators. (11) Stats by category and enabled/disabled counts. (12) History (localStorage, last 20). (13) Shareable URL with full config encoded. 100% client-side — your config is never uploaded. No ads.
Related tools
Add / Subtract Date Calculator
Add or subtract years, months, weeks, days, hours, minutes and seconds from a starting date/time. Calendar-day or business-day mode with custom weekend + holiday list. Month-end policy toggle (clamp to last day vs overflow). Repeat/series mode (e.g. every 2 weeks x 10) with CSV export. Shareable URL. 100% client-side.
Age Calculator
Calculate exact age from a birth date in calendar years/months/days (no negative-day bugs) plus totals in months/weeks/days/hours/minutes/seconds. Next-birthday countdown with weekday. Feb-29 birthday policy toggle. Milestones (1,000 days, 10,000 days, 1 billion seconds). Zodiac sign + Chinese zodiac. Age gap comparison. Shareable URL. 100% client-side.
ANSI Escape Code / Terminal Color Generator
Visually compose terminal text styling — FG/BG color in 16/256/24-bit truecolor, SGR styles (bold, faint, italic, underline, blink, inverse, hidden, strikethrough) — and get the exact ANSI escape sequence with a live preview. Multi-format escape output (\x1b, \033, \e, \u001b, raw ESC), language snippets (bash printf, Python, JS, Go, Rust, C), reverse decoder (paste a sequence → see what it does), hex→256 and hex→truecolor conversion, 256-color palette grid, strip-ANSI helper, terminal-support notes. 100% client-side.