Created
June 14, 2013 05:43
-
-
Save anonymous/5779713 to your computer and use it in GitHub Desktop.
Revisions
-
There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ DIRECTORY="/usr/local/etc/openssl/certs" download_cert() { cd $DIRECTORY && wget http://curl.haxx.se/ca/cacert.pem } add_to_zsh() { echo "export SSL_CERT_FILE=$DIRECTORY/cacert.pem" >> ~/.zshrc } if [ -d "$DIRECTORY" ]; then download_cert && add_to_zsh else mkdir $DIRECTORY && download_cert && add_to_zsh fi zsh