Created
October 13, 2021 13:22
-
-
Save kidsil/465797bb741bc981d28a977f24f48102 to your computer and use it in GitHub Desktop.
Alias for local.run on .zshrc
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
# 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