This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# serve.sh | |
# Modular version: https://gist.github.com/alganet/a22a1373dcee7c175d1e | |
# Expansion on zsh | |
command -v setopt 2>&1 >/dev/null && setopt SH_WORD_SPLIT | |
# POSIX on bash | |
export POSIXLY_CORRECT=1 | |
# Lists files and folders as HTML |