From: Jesus de Mula Cano Date: Sun, 6 Mar 2011 23:06:52 +0000 (+0100) Subject: change back http alias and check for Linux to use python2 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=fe9116c8e66eae4bc42e9a07621ade0ece8aa6ce;p=common%2Fbash_it.git change back http alias and check for Linux to use python2 --- diff --git a/plugins/python.plugin.bash b/plugins/python.plugin.bash index 280beb1..3a0bf7f 100644 --- a/plugins/python.plugin.bash +++ b/plugins/python.plugin.bash @@ -1,4 +1,9 @@ #!/bin/bash -alias http='python2 -m SimpleHTTPServer' +if [ $(uname) = "Linux" ] +then + alias http='python2 -m SimpleHTTPServer' +else + alias http='python -m SimpleHTTPServer' +fi