Created
November 14, 2012 11:16
-
-
Save nuclearsandwich/4071596 to your computer and use it in GitHub Desktop.
My hackaround solution to everyone else failing at new things
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
# snipped | |
# Seriously Fuck Python 2 | |
if [ -d ~/.fuckpy2 ]; then | |
# path-me! is equivalent to export PATH="$1":"$PATH" | |
path-me! "$HOME/.fuckpy2" | |
function python-is-py2 { | |
rm ~/.fuckpy2/python | |
ln -s /usr/bin/python2 ~/.fuckpy2/python | |
} | |
function python-is-py3 { | |
rm ~/.fuckpy2/python | |
ln -s /usr/bin/python3 ~/.fuckpy2/python | |
} | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment