Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
81192343
Commit
81192343
authored
Nov 16, 2013
by
Eddie Monge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
standardize logic blocks
parent
9f5a8951
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
oh-my-zsh.sh
oh-my-zsh.sh
+5
-10
No files found.
oh-my-zsh.sh
View file @
81192343
# Check for updates on initial load...
if
[
"
$DISABLE_AUTO_UPDATE
"
!=
"true"
]
then
if
[
"
$DISABLE_AUTO_UPDATE
"
!=
"true"
]
;
then
/usr/bin/env
ZSH
=
$ZSH
DISABLE_UPDATE_PROMPT
=
$DISABLE_UPDATE_PROMPT
zsh
$ZSH
/tools/check_for_upgrade.sh
fi
...
...
@@ -69,8 +68,7 @@ done
unset
config_file
# Load the theme
if
[
"
$ZSH_THEME
"
=
"random"
]
then
if
[
"
$ZSH_THEME
"
=
"random"
]
;
then
themes
=(
$ZSH
/themes/
*
zsh-theme
)
N
=
${#
themes
[@]
}
((
N
=(
RANDOM%N
)
+1
))
...
...
@@ -78,13 +76,10 @@ then
source
"
$RANDOM_THEME
"
echo
"[oh-my-zsh] Random theme '
$RANDOM_THEME
' loaded..."
else
if
[
!
"
$ZSH_THEME
"
=
""
]
then
if
[
-f
"
$ZSH_CUSTOM
/
$ZSH_THEME
.zsh-theme"
]
then
if
[
!
"
$ZSH_THEME
"
=
""
]
;
then
if
[
-f
"
$ZSH_CUSTOM
/
$ZSH_THEME
.zsh-theme"
]
;
then
source
"
$ZSH_CUSTOM
/
$ZSH_THEME
.zsh-theme"
elif
[
-f
"
$ZSH_CUSTOM
/themes/
$ZSH_THEME
.zsh-theme"
]
then
elif
[
-f
"
$ZSH_CUSTOM
/themes/
$ZSH_THEME
.zsh-theme"
]
;
then
source
"
$ZSH_CUSTOM
/themes/
$ZSH_THEME
.zsh-theme"
else
source
"
$ZSH
/themes/
$ZSH_THEME
.zsh-theme"
...
...
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