@laabroms/alias-cli
v0.1.8
Published
Interactive TUI for managing shell aliases
Downloads
785
Maintainers
Readme
Alias CLI
█████╗ ██╗ ██╗ █████╗ ███████╗
██╔══██╗██║ ██║██╔══██╗██╔════╝
███████║██║ ██║███████║███████╗
██╔══██║██║ ██║██╔══██║╚════██║
██║ ██║███████╗██║██║ ██║███████║
╚═╝ ╚═╝╚══════╝╚═╝╚═╝ ╚═╝╚══════╝Interactive terminal UI for managing shell aliases
Demo

Features
- ✨ Interactive TUI — keyboard-driven, no mouse needed
- 📝 Add/Edit/Delete aliases with clean modal dialogs
- 🔍 Real-time search — filter aliases as you type with arrow key navigation
- 🔍 Live preview — see your alias before saving
- 💾 Auto-backup — creates
.zshrc.backupbefore changes - 🎯 Visual focus — clearly see which field you're editing
- 🎨 Color-coded UI — easy to scan and navigate
- 📦 Zero config — works with
.zshrcor.bashrcout of the box
Installation
Quick Install (bash)
curl -fsSL https://raw.githubusercontent.com/laabroms/alias-cli/main/install.sh | bashnpm (global)
npm install -g @laabroms/alias-clinpx (no install)
npx @laabroms/alias-cliFrom source
git clone https://github.com/laabroms/alias-cli.git
cd alias-cli
npm install
npm run devUsage
Run the CLI:
alias-cliKeyboard Shortcuts
Main Screen:
↑/↓— Navigate aliasesa— Add new aliase— Edit selected aliasdorDel— Delete selected alias/— Search/filter aliasesc— Clear search filterq— Quit
Search Mode:
- Type to filter aliases in real-time
↑/↓— Navigate filtered resultsEnter— Edit selected aliasEsc— Close search
Add/Edit Modal:
Tab— Switch between Name and Command fieldsEnter— SaveEsc— Cancel
Delete Confirmation:
yorEnter— Confirm deletenorEsc— Cancel
Example
Create a quick commit alias:
- Run
alias-cli - Press
ato add - Name:
gc - Command:
git add . && git commit -m - Press
Enterto save - Press
qto quit - Paste the command (auto-copied to clipboard!) and press Enter
- Use it:
gc "feat: add new feature"
How It Works
- Loads aliases from your
.zshrcor.bashrc - Displays them in an interactive list
- Saves changes back to your shell config
- Backups the original file before writing
All aliases are written to the end of your shell config with a comment:
# Aliases managed by alias-cli
alias gs="git status"
alias gc="git add . && git commit -m"
alias gp="git push origin main"After making changes, the CLI automatically copies the source command to your clipboard — just paste and run!
Requirements
- Node.js >= 18.0.0
- Terminal with ANSI color support
Tech Stack
- Ink — React renderer for CLIs
- ink-text-input — Text input component
- TypeScript — Type safety
- tsup — Fast bundler
- tsx — TypeScript execution
Contributing
PRs welcome! Please open an issue first to discuss what you'd like to change.
License
MIT © Lucas Abroms
