mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-12 08:10:07 +00:00
Merge pull request #413 from davidmpaz/icon_by_repo
vcs: Hide error when no origin in git repo
This commit is contained in:
commit
51d971a032
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ function +vi-hg-bookmarks() {
|
||||||
function +vi-vcs-detect-changes() {
|
function +vi-vcs-detect-changes() {
|
||||||
if [[ "${hook_com[vcs]}" == "git" ]]; then
|
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
|
if [[ "$remote" =~ "github" ]] then
|
||||||
vcs_visual_identifier='VCS_GIT_GITHUB_ICON'
|
vcs_visual_identifier='VCS_GIT_GITHUB_ICON'
|
||||||
elif [[ "$remote" =~ "bitbucket" ]] then
|
elif [[ "$remote" =~ "bitbucket" ]] then
|
||||||
|
|
Loading…
Reference in a new issue