]> git.donarmstrong.com Git - zsh.git/blobdiff - .zsh/func/giturl
BF: giturl -- support SSH access URLs for github, i.e. git@github.com:ORGANIZATON...
[zsh.git] / .zsh / func / giturl
index 04f998f8adc7188034e022ca67ce32878825212a..171c4da0bf017f6ed78855b821d0ac6b587b347e 100755 (executable)
@@ -38,11 +38,11 @@ case "$remote" in
     part="${part%.git}.git"
     style=gitweb_old
     ;;
-  github:*|*://github.com/*|*@github.com/*)
+  github:*|*://github.com/*|*@github.com[/:]*)
     gitweb_base=http://github.com
     part="${remote#github:}"
     part="${part#*://github.com/}"
-    part="${part#*@github.com/}"
+    part="${part#*@github.com[:/]}"
     part="${part%.git}"
     style=github
     commitkw=commit