Skip to content

Instantly share code, notes, and snippets.

@half-ogre
Created May 4, 2012 15:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save half-ogre/2595337 to your computer and use it in GitHub Desktop.
Save half-ogre/2595337 to your computer and use it in GitHub Desktop.
A bash script to install nuget.exe and make it available in bash with a proxy script
#!/bin/sh
current_dir=`pwd`
temp_dir=`mktemp -d nuget-curl`
cd $temp_dir
curl -O http://anglicangeek.com/nuget.exe
rm -rf /usr/local/libexec/nuget.exe
mv ./nuget.exe /usr/local/libexec/
cd $current_dir
rm -rf $temp_dir
rm -rf /usr/bin/local/nuget
echo '#!/bin/sh' >> /usr/local/bin/nuget
echo '/usr/bin/mono --runtime=v4.0.30319 /usr/local/libexec/nuget.exe "$@"' >> /usr/local/bin/nuget
chmod a+x /usr/local/bin/nuget
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment