Skip to content

Commit

Permalink
REFACTOR to a more explicite syntax for the default value of PRIMARY_FG
Browse files Browse the repository at this point in the history
  • Loading branch information
cell committed Feb 26, 2017
1 parent ad04a7c commit 3e961de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agnoster.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
# A few utility functions to make it easy and re-usable to draw segmented prompts

CURRENT_BG='NONE'
: ${PRIMARY_FG:=black}
if [[ -z "$PRIMARY_FG" ]]; then
PRIMARY_FG=black
fi

# Characters
SEGMENT_SEPARATOR="\ue0b0"
Expand Down

0 comments on commit 3e961de

Please sign in to comment.