#!/usr/bin/env bash # ===== Configuration ===== # NOCACHE=true SRV_ARGS="" # ========================= # function hostwww ( local ARGS="$SRV_ARGS" if [[ "$NOCACHE" == true ]]; then ARGS+=" --nocache" fi cd www simple-http-server "$ARGS" "$@" ) hostwww