aliasman

command module
v0.0.0-...-2c1f8fe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 9 Imported by: 0

README

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
  1. Clone the repository:

    git clone https://github.com/AndreBaltazar8/aliasman.git
    
  2. Navigate to the project directory:

    cd aliasman
    
  3. Install the application:

    go install
    
  4. Run Aliasman:

    aliasman
    

Usage

  1. Launch Aliasman by running aliasman in your terminal.
  2. Use the arrow keys to navigate the menu and Enter to select an option.
  3. 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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL