Code Review
/
common
/
bash_it.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
1080af3
)
change back http alias and check for Linux to use python2
author
Jesus de Mula Cano
<demula@gmail.com>
Sun, 6 Mar 2011 23:06:52 +0000
(
00:06
+0100)
committer
Jesus de Mula Cano
<demula@gmail.com>
Sun, 6 Mar 2011 23:06:52 +0000
(
00:06
+0100)
plugins/python.plugin.bash
patch
|
blob
|
history
diff --git
a/plugins/python.plugin.bash
b/plugins/python.plugin.bash
index
280beb1
..
3a0bf7f
100644
(file)
--- 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