mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-28 07:50:09 +08:00
fix invalid syntax in old zsh versions
This commit is contained in:
parent
afa8dc46ec
commit
a3d13eb76a
@ -212,7 +212,7 @@ prompt_virtualenv() {
|
||||
# - am I root
|
||||
# - are there background jobs?
|
||||
prompt_status() {
|
||||
local -a symbols=()
|
||||
local -a symbols
|
||||
|
||||
[[ $RETVAL -ne 0 ]] && symbols+="%{%F{red}%}✘"
|
||||
[[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡"
|
||||
|
Loading…
Reference in New Issue
Block a user