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
# Tunnels to valet project with custom domain name. | |
# Uses ngrok.com with my personal github account and auth token | |
function tunnel_valet() { | |
HOST="${PWD##*/}" | |
DOMAIN=$(valet domain) | |
SUBDOMAIN="$HOST" | |
[[ "$1" ]] && SUBDOMAIN=$1; | |
for linkname in ~/.valet/Sites/*; do | |
if [[ "$(readlink $linkname)" = "$PWD" ]] |