Created
June 10, 2014 14:46
-
-
Save ionelmc/2d1437e909c946f436ae to your computer and use it in GitHub Desktop.
SCL python alias (SCL it's a RHEL/CentOS thing).
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
sclpython() { | |
if [ "$#" = 0 ]; then | |
scl enable python27 python | |
else | |
echo $( | |
echo python | |
for i in "$@"; do | |
printf "%q\n" "$i" | |
done | |
) | scl enable python27 - | |
fi | |
} | |
alias python=sclpython |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment