mirror of
https://github.com/romkatv/powerlevel10k
synced 2024-12-23 22:42:18 +00:00
Hide error when no origin in git repo
Fix git ls-remote call to match as in sugessted code for redirect error to null.
This commit is contained in:
parent
02df303651
commit
b59d73c039
@ -111,7 +111,7 @@ function +vi-hg-bookmarks() {
|
||||
function +vi-vcs-detect-changes() {
|
||||
if [[ "${hook_com[vcs]}" == "git" ]]; then
|
||||
|
||||
local remote=`git ls-remote --get-url`
|
||||
local remote=$(git ls-remote --get-url 2> /dev/null)
|
||||
if [[ "$remote" =~ "github" ]] then
|
||||
vcs_visual_identifier='VCS_GIT_GITHUB_ICON'
|
||||
elif [[ "$remote" =~ "bitbucket" ]] then
|
||||
|
Loading…
Reference in New Issue
Block a user