X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/ca35935553d869d81ece0438e76633632fd707d8..2dfbee08389e20588a648f1f6ab18c0d9e04a1b9:/.zsh/func/giturl 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