commit | fe9116c8e66eae4bc42e9a07621ade0ece8aa6ce | [log] [tgz] |
---|---|---|
author | Jesus de Mula Cano <demula@gmail.com> | 周一 3月 07 00:06:52 2011 +0100 |
committer | Jesus de Mula Cano <demula@gmail.com> | 周一 3月 07 00:06:52 2011 +0100 |
tree | cf82ca285f3714adcedfabc49bec9c57e013977a | |
parent | 1080af358dce939b147e20193f7da2116eebb6dd [diff] |
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