← 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.
- Add an alias for any script — detects duplicates, overwrites safely
- List all aliases with numbered menu
- Run a script directly from the list
- Edit a script in your preferred terminal editor
- Delete aliases cleanly
- Create a new
.sh script from template and alias it in one step
- Backup → validate → restore on every change — your config never breaks
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
⚠️ Always review scripts before running them.
This script only modifies files inside your own home directory.
No root or sudo required.
Installation
-
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
-
Make it executable:
chmod +x ~/scripts/bash_alias_manager.sh
-
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
-
Activate the new alias in your current session:
source ~/.bash_aliases
-
From now on, just run:
aliasmanager
Requirements
- Linux with bash shell (Ubuntu 20.04+, Linux Mint 20+)
- No external dependencies — uses only standard bash and coreutils
- Works with default
nano editor, or set $EDITOR in your ~/.bashrc