From 12a9938eeaeca381c1c18cd9bad67d3800e3c777 Mon Sep 17 00:00:00 2001 From: Tommy Harris Date: Fri, 17 Sep 2021 09:57:40 -0600 Subject: [PATCH] update method to find git remote Signed-off-by: Tommy Harris --- oh-my-zsh/themes/agnoster-custom.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oh-my-zsh/themes/agnoster-custom.zsh-theme b/oh-my-zsh/themes/agnoster-custom.zsh-theme index 8e01ccc..22653e3 100644 --- a/oh-my-zsh/themes/agnoster-custom.zsh-theme +++ b/oh-my-zsh/themes/agnoster-custom.zsh-theme @@ -121,7 +121,7 @@ prompt_git() { mode=">R>" fi - remote="$(git remote -v | grep origin | awk '{print $2}' | head -n 1 2>/dev/null)" + remote="$(git ls-remote --get-url 2>/dev/null)" setopt promptsubst autoload -Uz vcs_info