| Crates.io | rbam |
| lib.rs | rbam |
| version | 0.1.1 |
| created_at | 2025-10-10 23:54:57.291+00 |
| updated_at | 2025-10-12 09:53:32.828135+00 |
| description | A blazing-fast Rust Bash Alias Manager (create, list, and remove shell aliases). |
| homepage | https://github.com/bbcoder-gh/rbam |
| repository | https://github.com/bbcoder-gh/rbam |
| max_upload_size | |
| id | 1877661 |
| size | 20,763 |
A fast, simple CLI tool to manage your bash aliases, perfect for SSH shortcuts and frequently used commands.
.bash_aliases file automaticallycargo install rbam
git clone https://github.com/yourusername/rbam
cd rbam
cargo install --path .
# Add your first alias
rbam add
# Name: prod-server
# Command: ssh deploy@production.example.com
# List all aliases
rbam list
# List with full commands
rbam list --full
# Execute an alias
rbam exec prod-server
After adding aliases, reload your shell:
source ~/.bash_aliases
Interactive mode - prompts for name and command:
rbam add
Example session:
Name: cdn-staging
Command: ssh -p 2222 deploy@cdn.staging.example.com
✓ Added alias: cdn-staging
To use immediately, run:
source ~/.bash_aliases
Show alias names only:
rbam list
Output:
cdn-staging
prod-server
db-backup
Show full details:
rbam list --full
Output:
alias cdn-staging='ssh -p 2222 deploy@cdn.staging.example.com'
alias prod-server='ssh deploy@production.example.com'
alias db-backup='ssh root@backup.example.com'
Run a command from an alias without sourcing:
rbam exec cdn-staging
Useful for testing before sourcing your shell.
rbam add
# Name: prod
# Command: ssh deploy@prod.example.com
rbam add
# Name: staging
# Command: ssh deploy@staging.example.com -p 2222
rbam add
# Name: dps
# Command: docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"
rbam add
# Name: gst
# Command: git status -sb
rbam add
# Name: proj
# Command: cd ~/projects/myapp && ls
rbam manages your .bash_aliases file located at:
~/.bash_aliases
This file is automatically sourced by .bashrc on most systems.
rbam stores aliases in ~/.bash_aliases. No additional configuration needed.
# Clone the repository
git clone https://github.com/yourusername/rbam
cd rbam
# Run tests
cargo test
# Build release
cargo build --release
# Binary will be at
./target/release/rbam
Contributions are welcome! Please feel free to submit a Pull Request.
git clone https://github.com/yourusername/rbamgit checkout -b feature/my-featurecargo testcargo fmtcargo clippygit commit -m "Add my feature"git push origin feature/my-featureQ: Where are my aliases stored?
A: In ~/.bash_aliases in your home directory.
Q: How do I remove an alias?
A: Currently, manually edit ~/.bash_aliases. Remove command coming soon!
Q: Do I need to restart my terminal?
A: No, just run source ~/.bash_aliases to reload.
Q: Can I use this with zsh?
A: Yes! Add source ~/.bash_aliases to your ~/.zshrc.
Q: What if I already have a .bash_aliases file? A: rbam appends to it, preserving existing aliases.
MIT License - see LICENSE file for details.
Your Name - @yourhandle
Star ⭐ this repo if you find it useful!