← aapistonttu

Bash Alias Manager

Manage your bash aliases interactively — add, list, run, edit, delete, and create new scripts from the terminal.

bash Ubuntu Linux Mint open source

What it does

bash_alias_manager.sh is a small interactive terminal tool that keeps your ~/.bash_aliases tidy without manual editing. It handles first-time setup automatically and patches ~/.bashrc if needed, so it works on a fresh Ubuntu or Linux Mint install.

Usage example

bash — aliasmanager
user@mint:~$ aliasmanager
=== Bash Alias Manager ===
1) Add alias
2) List / Run / Edit / Delete
3) Create new script
Choose: 2
=== Alias List ===
[1] alias aliasmanager="/home/user/scripts/bash_alias_manager.sh"
[2] alias backup="/home/user/scripts/backup.sh"
[3] alias notes="/home/user/scripts/notes.sh"
Enter number → RUN the script
Enter e<number> → EDIT script (e.g. e2)
Enter d<number> → DELETE alias (e.g. d3)
Enter nothing → exit
Choice: e2
Opening: /home/user/scripts/backup.sh

Download

Download bash_alias_manager.sh Plain bash script · no dependencies · ~200 lines
⚠️ Always review scripts before running them.
This script only modifies files inside your own home directory. No root or sudo required.

Installation

  1. Download the script and move it to your scripts folder:
    mv ~/Downloads/bash_alias_manager.sh ~/scripts/
    # Create ~/scripts/ first if it does not exist:
    mkdir -p ~/scripts
  2. Make it executable:
    chmod +x ~/scripts/bash_alias_manager.sh
  3. Run it once — first-run setup will ask for your scripts folder, patch ~/.bashrc if needed, and add the aliasmanager alias automatically:
    ~/scripts/bash_alias_manager.sh
  4. Activate the new alias in your current session:
    source ~/.bash_aliases
  5. From now on, just run:
    aliasmanager

Requirements