change back http alias and check for Linux to use python2
authorJesus de Mula Cano <demula@gmail.com>
Sun, 6 Mar 2011 23:06:52 +0000 (00:06 +0100)
committerJesus de Mula Cano <demula@gmail.com>
Sun, 6 Mar 2011 23:06:52 +0000 (00:06 +0100)
plugins/python.plugin.bash

index 280beb1..3a0bf7f 100644 (file)
@@ -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