Skip to content

Instantly share code, notes, and snippets.

@algogrit
Created July 25, 2013 14:35
Show Gist options
  • Save algogrit/6080309 to your computer and use it in GitHub Desktop.
Save algogrit/6080309 to your computer and use it in GitHub Desktop.
Install git multi
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