A collection of useful scripts and aliases to streamline terminal tasks, including file management, navigation, network operations, Git commands, npm, yarn, and system tasks.
Follow the instructions below to integrate these scripts into your terminal setup.
- A Unix-based shell environment (e.g., bash, zsh).
- Git installed on your machine.
-
Clone the Repository
First, clone this repository into your home directory or any preferred location:
git clone [email protected]:fabaguirre/.aliases.git ~/.aliases
-
Add Sourcing to Your Shell Configuration
Add the following lines to your shell configuration file (
~/.bashrc
,~/.zshrc
, or equivalent) to source each script individually:for file in ~/.aliases/*.sh; do source "$file" done
This loop will source all the
.sh
files in the.aliases
folder, making the aliases and functions available in your terminal. -
Reload Your Shell Configuration
Apply the changes by reloading your shell configuration:
source ~/.bashrc # For bash users # or source ~/.zshrc # For zsh users
Alternatively, you can restart your terminal.
Feel free to edit the scripts to suit your needs. You can add, modify, or remove aliases and functions as desired.
Once installed, you can use the provided aliases and functions directly from your terminal. Check each .sh
file for specific commands and aliases included.
If you prefer a more visually appealing and feature-rich alternative to ls
, you can use Eza. Script automatically detects if Eza is installed and applies enhanced aliases for file navigation.
Eza offers:
- Icons for better file recognition
- Color gradients to visualize file sizes and dates
- Integration with Git status for tracked files
To learn more about Eza and how to install it, check out the official documentation