update method to find git remote

Signed-off-by: Tommy Harris <tobraha@tilde.team>
This commit is contained in:
Tommy Harris 2021-09-17 09:57:40 -06:00
parent d2e965160c
commit 12a9938eea
Signed by: tobraha
GPG Key ID: 93769A4F97AE33E9
1 changed files with 1 additions and 1 deletions

View File

@ -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