AliasHub is a comprehensive alias management system for Bash, designed to enhance your command-line productivity and streamline your workflow.
- Centralized management of Bash aliases
- Pre-configured aliases for common tasks
- Easy-to-use command-line shortcuts
- Customizable prompt configurations via starship
- Organized structure for different types of aliases (e.g., git, navigation, package management)
- Flexible and extensible design
July 2024
- Replaced the previous custom prompt with Starship for more powerful and flexible customization.
- The installer now interactively prompts the user to install Starship and enables it on confirmation.
- Added a basic man page for
aliashub. - The installation script now automatically detects the user's package manager (
aptorpacman) and installs the correct aliases. - Added support for Arch-based distributions.
- The installer checks for
figletand offers to install it, allowing the user to set a custom ASCII logo for their terminal startup. - Users can now set their preferred command-line editor during installation.
- Create an
uninstall.shscript: A script to safely remove~/.aliasand revert changes to.bashrc. - Add support for more distributions: Extend package manager support to include
dnf(Fedora) andzypper(openSUSE). - Review personal aliases: Generalize any remaining user-specific aliases in files like
.clto be useful for a wider audience. - Add more alias modules: Create new alias files for common developer tools like Docker,
kubectl, etc. - Add support for other shells
zsh,fish, etc
- Clone the AliasHub repository:
git clone https://github.com/yourusername/AliasHub.git- Navigate to the AliasHub directory:
cd AliasHub- Run the installation script:
chmod +x install.sh
./install.shThis script will automatically add the necessary line to your ~/.bashrc file to set up AliasHub.
- Reload your Bash configuration or restart your terminal:
source ~/.bashrcAfter installation, you can start using the pre-configured aliases immediately. Here are some examples:
pyrun: Run a Python scriptgcl: Clone a git repositoryedalias: Edit your bash aliasesupgrade: Update and upgrade system packages
For a full list of available aliases, use the command: alias
AliasHub's configuration files are located in the ~/.alias directory. Key files include:
.bash_aliases: Main alias definitions.bash_functions: Custom Bash functions.confedit: Defines the editor used byedalias..cl: Command-line shortcuts.gitcmd: Aliases for common Git commands..package: Package management aliases.python: Aliases and functions for Python development..prompts: Prompt configurations.starship_config: Configuration for the Starship prompt.
To add your own aliases or modify existing ones:
- Edit the appropriate configuration file (e.g.,
~/.alias/.bash_aliases) - Add your new alias or modify an existing one
- Save the file and run
refreshto reload your Bash configuration
Contributions to AliasHub are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
