1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-09-28 16:52:39 +00:00

Use python3 for http-serve alias if available (#1193)

This commit is contained in:
Eduard Zintz 2017-04-03 22:27:06 +02:00 committed by Kaleb Elwert
parent 2ba060a426
commit 8913bcccd2

View File

@ -158,7 +158,11 @@ fi
# Miscellaneous # Miscellaneous
# Serves a directory via HTTP. # Serves a directory via HTTP.
if (( $+commands[python3] )); then
alias http-serve='python3 -m http.server'
else
alias http-serve='python -m SimpleHTTPServer' alias http-serve='python -m SimpleHTTPServer'
fi
# #
# Functions # Functions