Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
a3d13eb7
Unverified
Commit
a3d13eb7
authored
Sep 26, 2018
by
Marc Cornellà
Committed by
GitHub
Sep 26, 2018
Browse files
fix invalid syntax in old zsh versions
parent
afa8dc46
Changes
1
Hide whitespace changes
Inline
Side-by-side
themes/agnoster.zsh-theme
View file @
a3d13eb7
...
@@ -212,7 +212,7 @@ prompt_virtualenv() {
...
@@ -212,7 +212,7 @@ prompt_virtualenv() {
# - am I root
# - am I root
# - are there background jobs?
# - are there background jobs?
prompt_status
()
{
prompt_status
()
{
local
-a
symbols
=()
local
-a
symbols
[[
$RETVAL
-ne
0
]]
&&
symbols+
=
"%{%F{red}%}✘"
[[
$RETVAL
-ne
0
]]
&&
symbols+
=
"%{%F{red}%}✘"
[[
$UID
-eq
0
]]
&&
symbols+
=
"%{%F{yellow}%}⚡"
[[
$UID
-eq
0
]]
&&
symbols+
=
"%{%F{yellow}%}⚡"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment