Skip to content

Instantly share code, notes, and snippets.

@ionelmc
Created June 10, 2014 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ionelmc/2d1437e909c946f436ae to your computer and use it in GitHub Desktop.
Save ionelmc/2d1437e909c946f436ae to your computer and use it in GitHub Desktop.
SCL python alias (SCL it's a RHEL/CentOS thing).
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