Aliasman
[!NOTE]
This project was entirely created using AI as part of a 30 Cursor AI projects in 30 days challenge. For more information, check out this Twitter thread.
Aliasman is a powerful Terminal User Interface (TUI) application for managing Bash aliases with ease. It simplifies the process of creating, listing, and deleting aliases, and even offers AI-assisted alias creation.
Features
- 🚀 Easy installation and setup
- 📋 List, add, and delete aliases and bash functions
- 🤖 AI-assisted alias and function creation
- ⚙️ Configurable LLM model for AI assistance
- 🖥️ Cross-shell compatibility (Bash, Zsh)
- 🎨 User-friendly TUI powered by tview
Installation
Prerequisites
- Go 1.21 or higher
- LLM (for AI-assisted alias creation)
You can choose either the quick install method or the manual installation steps below.
Quick Install
To quickly install Aliasman globally, use the following command:
go install github.com/AndreBaltazar8/aliasman@latest
Steps
-
Clone the repository:
git clone https://github.com/AndreBaltazar8/aliasman.git
-
Navigate to the project directory:
cd aliasman
-
Install the application:
go install
-
Run Aliasman:
aliasman
Usage
- Launch Aliasman by running
aliasman
in your terminal.
- Use the arrow keys to navigate the menu and Enter to select an option.
- Follow the on-screen prompts to manage your aliases and bash functions.
Main Menu Options
- Manage Aliases and Functions: Add, remove, or list aliases and bash functions
- AI Assisted Creation: Create aliases or functions with AI help
- Settings: Configure Aliasman and check installation
- Quit: Exit the application
Quick Alias Listing
To quickly list all aliases without entering the TUI:
aliasman list
Configuration
Aliasman stores its configuration, aliases, and functions in ~/.aliasman_aliases
. You can manually edit this file, but it's recommended to use the TUI for management.
To change the LLM model used for AI-assisted alias creation, use the "Change LLM Model" option in the Settings menu.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License.