mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-29 04:53:17 +02:00
Fix associative array 'STASHED' key
Also optimised `if` statement to make it more idiomatic.
This commit is contained in:
parent
df6c7b8a79
commit
ffe5a7c57c
1 changed files with 2 additions and 2 deletions
|
|
@ -179,8 +179,8 @@ function git_prompt_status() {
|
|||
return 1
|
||||
fi
|
||||
|
||||
if $(command git rev-parse --verify refs/stash >/dev/null 2>&1); then
|
||||
statuses_seen['STASHED']=1
|
||||
if command git rev-parse --verify refs/stash &>/dev/null; then
|
||||
statuses_seen[STASHED]=1
|
||||
fi
|
||||
|
||||
local status_lines=("${(@f)${status_text}}");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue