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##*@}"