From c8b634b81ff7a7b5d6cf68158ec0d52f08825f74 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Sat, 21 Jan 2023 01:57:37 +0100 Subject: [PATCH] git:https-and-ssh: Use shorter variant to get url --- .config/zsh/autoload/git/git-https-and-ssh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/autoload/git/git-https-and-ssh b/.config/zsh/autoload/git/git-https-and-ssh index 4556af9..8f5fd69 100755 --- a/.config/zsh/autoload/git/git-https-and-ssh +++ b/.config/zsh/autoload/git/git-https-and-ssh @@ -6,7 +6,7 @@ GIT="git" -origin="$($GIT remote -v | grep -Po '(?<=^origin\t).*(?= \(fetch\)$)')" +origin="$($GIT remote get-url origin)" if [ "${origin##https://}" = "$origin" ]; then https_origin="${origin##*@}"