Skip to content

Instantly share code, notes, and snippets.

@kidsil
Created October 13, 2021 13:22
Show Gist options
  • Save kidsil/465797bb741bc981d28a977f24f48102 to your computer and use it in GitHub Desktop.
Save kidsil/465797bb741bc981d28a977f24f48102 to your computer and use it in GitHub Desktop.
Alias for local.run on .zshrc
# Alias for local.run (locally served content), defaults to localhost:80
function locrun {
INPUT_HOST=$1
if [ -z "$1" ];
then INPUT_HOST="localhost:80"
else INPUT_HOST=$1
fi
ssh -R 80:$INPUT_HOST nokey@localhost.run
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment