From f8ff70d26792aca3bf9b4660c6ce0de140bc7b61 Mon Sep 17 00:00:00 2001 From: Fernando Iglesias Garcia Date: Wed, 4 Oct 2017 15:11:13 +0200 Subject: [PATCH] git plugin: print uniformly https and ssh repositories. --- plugins/git/git.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 34942d38..fe1295cb 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -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(){