by impalallama · 4y ago · 0 comments
Use it everyday. Great because my company has multiple git submodules in any given project and I can use this to watch for pipeline failures and the like.
x=$(git config --local remote.origin.url|sed -n 's#.*/\([^.]*\)\.git#\1#p')
y=$(git symbolic-ref --short HEAD)
url="https://git.thecompany.com/thecompany/$x/tree/$y"
$(open -a "firefox developer edition" "$url" glo () {
xdg-open https://git.thecompany.com/$(git config remote.origin.url |cut -f2 -d: |cut -f1 -d.)
}