diff --git a/home/private_bin/executable_ssh-serve-files b/home/private_bin/executable_ssh-serve-files index a7fa846..719bc49 100644 --- a/home/private_bin/executable_ssh-serve-files +++ b/home/private_bin/executable_ssh-serve-files @@ -1,6 +1,10 @@ #!/usr/bin/env bash -#colors +BOLD="\033[1m" +CYAN="\033[1;36m" +GREEN="\033[1;33m" +END="\033[0m" + help() { cat <>$DIR" +printf " ${BOLD}->>${CYAN} %s${END}\n" "${DIR}" -echo "opening $URL using $BROWSER" -$BROWSER $URL >/dev/null 2>&1 & +printf "opening ${BOLD}%s${END} using %s\n" "$URL" "$BROWSER" +echo '---------------' +"$BROWSER" "$URL" >/dev/null 2>&1 & # first change directory in case python<3.7 -ssh -tL localhost:$PORT:localhost:$PORT $USER_HOST \ +ssh -tL localhost:"$PORT":localhost:"$PORT" "$USER_HOST" \ "cd $DIR && python3 -m http.server $PORT"