Browse Source

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

master
Eduard Zintz 7 years ago committed by Kaleb Elwert
parent
commit
8913bcccd2
  1. 6
      modules/utility/init.zsh

6
modules/utility/init.zsh

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

Loading…
Cancel
Save