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
14bb3105
Commit
14bb3105
authored
Oct 10, 2011
by
Robby Russell
Browse files
Merge pull request #525 from kibs/master
Option for setting a different path to your custom files and plugins.
parents
762b55bb
3780247f
Changes
1
Show whitespace changes
Inline
Side-by-side
oh-my-zsh.sh
View file @
14bb3105
...
...
@@ -21,17 +21,24 @@ for plugin ($plugins) fpath=($ZSH/plugins/$plugin $fpath)
autoload
-U
compinit
compinit
-i
# Set ZSH_CUSTOM to the path where your custom config files
# and plugins exists, or else we will use the default custom/
if
[
"
$ZSH_CUSTOM
"
=
""
]
then
ZSH_CUSTOM
=
"
$ZSH
/custom"
fi
# Load all of the plugins that were defined in ~/.zshrc
for
plugin
(
$plugins
)
;
do
if
[
-f
$ZSH
/custom
/plugins/
$plugin
/
$plugin
.plugin.zsh
]
;
then
source
$ZSH
/custom
/plugins/
$plugin
/
$plugin
.plugin.zsh
if
[
-f
$ZSH
_CUSTOM
/plugins/
$plugin
/
$plugin
.plugin.zsh
]
;
then
source
$ZSH
_CUSTOM
/plugins/
$plugin
/
$plugin
.plugin.zsh
elif
[
-f
$ZSH
/plugins/
$plugin
/
$plugin
.plugin.zsh
]
;
then
source
$ZSH
/plugins/
$plugin
/
$plugin
.plugin.zsh
fi
done
# Load all of your custom configurations from custom/
for
config_file
(
$ZSH
/custom
/
*
.zsh
)
source
$config_file
for
config_file
(
$ZSH
_CUSTOM
/
*
.zsh
)
source
$config_file
# Load the theme
if
[
"
$ZSH_THEME
"
=
"random"
]
...
...
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