mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 08:20:10 +00:00
Make use of git dir determined by VCS_INFO subsystem
instead of determine the git dir manually.
This commit is contained in:
+1
-1
@@ -104,7 +104,7 @@ function +vi-git-tagname() {
|
||||
function +vi-git-stash() {
|
||||
local -a stashes
|
||||
|
||||
if [[ -s $(command git rev-parse --git-dir)/refs/stash ]] ; then
|
||||
if [[ -s "${vcs_comm[gitdir]}/refs/stash" ]] ; then
|
||||
stashes=$(command git stash list 2>/dev/null | wc -l)
|
||||
hook_com[misc]+=" $(print_icon 'VCS_STASH_ICON')${stashes// /}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user