fabe23bbfc4d5df85a07bb4fc8104a9eaf3cb097
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #2259 from eddiemonge/patch-1
standardize logic blocks
Diff
1diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
2index 15c1dce44c19249a12823c5493226edc61358ce0..2ae07668cba44a30e881db71d2d6f1af8f0964cb 100644
3--- a/oh-my-zsh.sh
4+++ b/oh-my-zsh.sh
5@@ -1,6 +1,5 @@
6 # Check for updates on initial load...
7-if [ "$DISABLE_AUTO_UPDATE" != "true" ]
8-then
9+if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then
10 /usr/bin/env ZSH=$ZSH DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT zsh $ZSH/tools/check_for_upgrade.sh
11 fi
12
13@@ -69,8 +68,7 @@ done
14 unset config_file
15
16 # Load the theme
17-if [ "$ZSH_THEME" = "random" ]
18-then
19+if [ "$ZSH_THEME" = "random" ]; then
20 themes=($ZSH/themes/*zsh-theme)
21 N=${#themes[@]}
22 ((N=(RANDOM%N)+1))
23@@ -78,13 +76,10 @@ then
24 source "$RANDOM_THEME"
25 echo "[oh-my-zsh] Random theme '$RANDOM_THEME' loaded..."
26 else
27- if [ ! "$ZSH_THEME" = "" ]
28- then
29- if [ -f "$ZSH_CUSTOM/$ZSH_THEME.zsh-theme" ]
30- then
31+ if [ ! "$ZSH_THEME" = "" ]; then
32+ if [ -f "$ZSH_CUSTOM/$ZSH_THEME.zsh-theme" ]; then
33 source "$ZSH_CUSTOM/$ZSH_THEME.zsh-theme"
34- elif [ -f "$ZSH_CUSTOM/themes/$ZSH_THEME.zsh-theme" ]
35- then
36+ elif [ -f "$ZSH_CUSTOM/themes/$ZSH_THEME.zsh-theme" ]; then
37 source "$ZSH_CUSTOM/themes/$ZSH_THEME.zsh-theme"
38 else
39 source "$ZSH/themes/$ZSH_THEME.zsh-theme"