From: Yaroslav Halchenko Date: Mon, 18 Oct 2010 21:09:34 +0000 (-0400) Subject: BF: giturl -- support SSH access URLs for github, i.e. git@github.com:ORGANIZATON... X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/21df65ccf4d7dd7f5c498667fea1c2272cc2bfec BF: giturl -- support SSH access URLs for github, i.e. git@github.com:ORGANIZATON/PROJECT --- diff --git a/.zsh/func/giturl b/.zsh/func/giturl index 04f998f..171c4da 100755 --- a/.zsh/func/giturl +++ b/.zsh/func/giturl @@ -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