bashrc.d collects some alias, path, ps1, and editor definitions
###Setup
- Clone the repo to your $HOME directory:
cd ~
git clone https://github.com/lifuzu/bashrc.d.git .bashrc.d
- Append the following content to your ~/.bashrc
OS=$( uname | tr '[:upper:]' '[:lower:]')
if [ -d $HOME/.bashrc.d ]; then
for SCRIPT in $( ls $HOME/.bashrc.d/${OS}/* ); do
. ${SCRIPT}
done
fi
- Enable it run the command:
source ~/.bashrc
- Or open a new terminal
- Done!
###Validate
- Go into ~/.bashrc.d
cd ~/.bashrc.d
- Try run 'gs', which trigger 'git status' command.
gs
- Enjoy!