From c97d18db1d248fef6b7521612d866a6902966261 Mon Sep 17 00:00:00 2001 From: jc <46619361+juancwu@users.noreply.github.com> Date: Wed, 22 May 2024 10:43:30 -0400 Subject: [PATCH] add zsh function to spawn static domain ngrok instance --- zsh/.zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zsh/.zshrc b/zsh/.zshrc index ead4538..f58cf8f 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -143,6 +143,11 @@ git-prune() { git branch -vv | grep '\[origin/.*: gone\]' | awk '{print $1}' | xargs git branch -d } +# makes it easier to spin up ngrok with static domain, pass in the port ngrok needs to listen +sngrok() { + ngrok http --domain=hyena-merry-literally.ngrok-free.app $1 +} + # Load colors if possible autoload -U colors && colors