JavaScript
cli-alias-wizard
A little wizard to quickly create CLI aliases
- Files
- 6
- Size
- 9.4 KB
- Langs
- 1
- Created
- Aug 16, 2024
- Last push
- about 2 years ago
README.md
cli-alias-wizard
CLI tool for managing shell aliases.
https://www.npmjs.com/package/cli-alias-wizard
https://github.com/user-attachments/assets/4678d331-18f1-4102-8116-905950fcb8e5
Features
- Create new aliases
- Use example aliases
- Modify existing aliases
- Auto-source shell config
- Interactive and command-line modes
Install
git clone https://github.com/yourusername/cli-alias-wizard.git
cd cli-alias-wizard
npm install
Usage
Interactive mode:
node index.js
Command-line mode:
node index.js create <alias_name> "<command>"
npx cli-alias-wizard create <alias_name> "<command>"
Example:
node index.js create gp "git push"
npx cli-alias-wizard create g. "git add ."
Config
Modifies ~/.bashrc or ~/.zshrc based on shell.
Troubleshoot
If aliases don't work, run:
source ~/.bashrc
or
source ~/.zshrc
License
MIT