Created
March 1, 2023 19:14
-
-
Save Boettner-eric/232a4f202bd4a898f02c8bf59c8fcb6b to your computer and use it in GitHub Desktop.
Push to a branch and open the browser to that branch
This file contains hidden or 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
#!/usr/bin/env zsh | |
command=$(git push 2>&1) | |
result=$(echo $command | grep -Eo '(http|https)://[a-zA-Z0-9./?=_%:-]*' | tr -d '\n') | |
open -a Arc $result; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment