A collection of handy Unix aliases and helpers for macOS and Linux.
Simplify your workflow, keep your shell clean, and make everyday tasks faster.
- Portable
.bashrcinstaller for macOS and Linux - Automatic backup and rollback of existing configurations
- macOS LaunchAgent integration to auto-load
.bashrc - CLI with options for dry-run, force overwrite, verbose, and quiet mode
- Update checker via GitHub or Gitea for easy version control
Run the installer in the current shell (dot sourcing) to immediately apply aliases:
# Run installer in current shell
. ./update_aliases.sh -i
# Chmod file
chmod +x update_aliases.sh
# Run installer
./update_aliases.sh# Replace 'username' with your target user
. ./bashrc_updater/update_aliases.sh -i -t username# Show what would happen without making changes
. ./bashrc_updater/update_aliases.sh -i -n. ./bashrc_updater/update_aliases.sh -u| Option | Description |
|---|---|
-i, --install |
Install .bashrc and repo files |
-u, --update |
Check for updates (WIP) |
-t, --target-user USER |
Install for a specified user |
-f, --force |
Force overwrite of existing files |
-n, --dry-run |
Preview actions without making changes |
-r, --rollback PATH |
Restore the latest backup of a file |
-V, --verbose |
Enable debug output |
-q, --quiet |
Suppress info messages |
-v, --version |
Print script version |
-h, --help |
Show help |
The script automatically creates timestamped backups before overwriting .bashrc or other config files.
# Restore the latest backup for a specific file
. ./bashrc_updater/update_aliases.sh -r /path/to/fileContributions are welcome! You can:
- Submit new aliases
- Improve documentation
- Add OS-specific enhancements
- Always dot source the script (
. ./update_aliases.sh) to ensure your shell environment updates immediately. - For macOS users, the script automatically configures a LaunchAgent to load
.bashrcat login. - Use
-q(quiet) when running automated setups to suppress output. - Customize
.bashrcbefore installation if you want to pre-load your favorite aliases.