mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-12 19:18:28 +02:00
Make use of git dir determined by VCS_INFO subsystem
instead of determine the git dir manually.
This commit is contained in:
parent
9a67ca5bc3
commit
d07507c1eb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user