X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/ca35935553d869d81ece0438e76633632fd707d8..ba79da8b82d0d955a1ae93b8d38eaa49468ca346:/.zsh/func/giturl?ds=sidebyside 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