Skip to content

Instantly share code, notes, and snippets.

View alghanmi's full-sized avatar

Rami AlGhanmi alghanmi

  • University of Southern California
  • Los Angeles, CA
View GitHub Profile
@alghanmi
alghanmi / install_git_on_parallel.sh
Created April 25, 2012 07:24 — forked from ad510/install_git_on_parallel.sh
shell script to install Git on USC parallel computers without root permissions
# note that this file needs execute permissions to run, which can be done by running "chmod u+rwx ./install_git_on_parallel.sh" (without quotes)
# this script based on:
# http://joemaller.com/908/how-to-install-git-on-a-shared-host/
# http://stackoverflow.com/questions/9500898/compiler-error-msgfmt-command-not-found-when-compiling-git-on-a-shared-hosting
# update $PATH
echo "# the following two lines added by install_git_on_parallel.sh" >> ~/.bashrc
echo "export PATH=$HOME/opt/bin:$PATH" >> ~/.bashrc
echo ". $HOME/opt/contrib/completion/git-completion.bash" >> ~/.bashrc
. ~/.bashrc