Created
July 25, 2013 14:35
-
-
Save algogrit/6080309 to your computer and use it in GitHub Desktop.
Install git multi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p ~/bin | |
curl https://raw.github.com/gauravagarwalr/Script-BackUp/master/OS%20X/Custom-Git-Commands/git-multi > ~/bin/git-multi | |
chmod 744 ~/bin/git-multi | |
echo $SHELL | grep 'zsh' | |
is_bourne_shell=$? | |
adding_bin_to_path="export PATH=~/bin:\$PATH" | |
if [ $is_bourne_shell ] ; then | |
echo "Adding bin to PATH for Bash..." | |
echo $adding_bin_to_path >> ~/.bash_profile | |
echo $adding_bin_to_path >> ~/.bashrc | |
else | |
echo "Adding bin to PATH for Zsh..." | |
echo $adding_bin_to_path >> ~/.zprofile | |
echo $adding_bin_to_path >> ~/.zshrc | |
fi | |
echo "git-multi Installed. Try 'git multi help'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment