This is personal settings repo to share my bash aliases and custom functions between servers. Please see .bashrc.sample to get idea on how to use this approach.
git clone https://github.com/dreamiurg/dotfiles.git ~/.dotfiles
~/.dotfiles/install.sh
More information in my article.