From fe9116c8e66eae4bc42e9a07621ade0ece8aa6ce Mon Sep 17 00:00:00 2001 From: Jesus de Mula Cano Date: Mon, 7 Mar 2011 00:06:52 +0100 Subject: [PATCH] change back http alias and check for Linux to use python2 --- plugins/python.plugin.bash | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.17.1