diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index 30fee32a..8fdbaeea 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -158,7 +158,7 @@ fi # Miscellaneous # Serves a directory via HTTP. -alias http-serve='python -m SimpleHTTPServer' +alias http-serve="python -c \"import SimpleHTTPServer; m = SimpleHTTPServer.SimpleHTTPRequestHandler.extensions_map; m[''] = 'text/plain'; m.update(dict([(k, v + ';charset=UTF-8') for k, v in m.items()])); SimpleHTTPServer.test();\"" # # Functions