Skip to content

Instantly share code, notes, and snippets.

@fcsest
Created April 14, 2022 13:21
Show Gist options
  • Save fcsest/e1bd2ef7a89090535ba18456cf0e8946 to your computer and use it in GitHub Desktop.
Save fcsest/e1bd2ef7a89090535ba18456cf0e8946 to your computer and use it in GitHub Desktop.
Stop ngrok process in fish shell with "source strop_ngrok.sh".
#!/bin/sh
echo "Stopping background ngrok process..."
kill -9 $(ps -ef | grep 'ngrok' | grep -v 'grep' | awk '{print $2}')
echo "ngrok stopped"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment