Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
e6fc2c67
Commit
e6fc2c67
authored
May 21, 2012
by
Robby Russell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1111 from jimeh/fix-ZSH_CUSTOM-variable
Fix $ZSH_CUSTOM variable
parents
1120f973
f9018c5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
oh-my-zsh.sh
oh-my-zsh.sh
+3
-4
No files found.
oh-my-zsh.sh
View file @
e6fc2c67
...
@@ -51,7 +51,7 @@ for plugin ($plugins); do
...
@@ -51,7 +51,7 @@ for plugin ($plugins); do
done
done
# Load all of your custom configurations from custom/
# Load all of your custom configurations from custom/
for
config_file
(
$ZSH_CUSTOM
/
*
.zsh
)
source
$config_file
for
config_file
(
$ZSH_CUSTOM
/
*
.zsh
(
.N
)
)
source
$config_file
# Load the theme
# Load the theme
if
[
"
$ZSH_THEME
"
=
"random"
]
if
[
"
$ZSH_THEME
"
=
"random"
]
...
@@ -65,12 +65,11 @@ then
...
@@ -65,12 +65,11 @@ then
else
else
if
[
!
"
$ZSH_THEME
"
=
""
]
if
[
!
"
$ZSH_THEME
"
=
""
]
then
then
if
[
-f
"
$ZSH
/custom
/
$ZSH_THEME
.zsh-theme"
]
if
[
-f
"
$ZSH
_CUSTOM
/
$ZSH_THEME
.zsh-theme"
]
then
then
source
"
$ZSH
/custom
/
$ZSH_THEME
.zsh-theme"
source
"
$ZSH
_CUSTOM
/
$ZSH_THEME
.zsh-theme"
else
else
source
"
$ZSH
/themes/
$ZSH_THEME
.zsh-theme"
source
"
$ZSH
/themes/
$ZSH_THEME
.zsh-theme"
fi
fi
fi
fi
fi
fi
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