git plugin: print uniformly https and ssh repositories.

This commit is contained in:
Fernando Iglesias Garcia 2017-10-04 15:11:13 +02:00
parent accdcb2f1c
commit f8ff70d267

View File

@ -18,7 +18,7 @@ function current_repository() {
if ! $_omz_git_git_cmd rev-parse --is-inside-work-tree &> /dev/null; then
return
fi
echo $($_omz_git_git_cmd remote -v | cut -d':' -f 2)
echo $($_omz_git_git_cmd remote -v | awk 'BEGIN { FS = "github.com[\:\/]" } { print $NF }')
}
# Pretty log messages
function _git_log_prettily(){