mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Fix up .oh-my-zsh.zsh a bit here. OMZ should have be overrideable.
This commit is contained in:
parent
0006781932
commit
2c9e83a6dd
1 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
# Initializes Oh My Zsh
|
# Initializes Oh My Zsh
|
||||||
ZSH=${ZSH:-/usr/share/oh-my-zsh}
|
ZSH=${ZSH:-/usr/share/oh-my-zsh}
|
||||||
OMZ=$HOME/.zsh
|
OMZ=${OMZ:-$HOME/.omz}
|
||||||
|
|
||||||
local config_file plugin
|
local config_file plugin
|
||||||
plugin=${plugin:=()}
|
plugin=${plugin:=()}
|
||||||
|
|
@ -16,7 +16,7 @@ fi
|
||||||
for config_file ($ZSH/lib/*.zsh(N))
|
for config_file ($ZSH/lib/*.zsh(N))
|
||||||
source $config_file
|
source $config_file
|
||||||
|
|
||||||
if [[ -d ~/.omz ]]; then
|
if [[ -d $OMZ ]]; then
|
||||||
for config_file ($OMG/*.zsh(N))
|
for config_file ($OMG/*.zsh(N))
|
||||||
source $config_file
|
source $config_file
|
||||||
fi
|
fi
|
||||||
|
|
@ -24,7 +24,7 @@ fi
|
||||||
for plugin ($plugins)
|
for plugin ($plugins)
|
||||||
fpath=($ZSH/plugins/$plugin $fpath)
|
fpath=($ZSH/plugins/$plugin $fpath)
|
||||||
|
|
||||||
if [[ -d ~/.omz ]]; then
|
if [[ -d $OMZ ]]; then
|
||||||
if [[ -d $OMZ/plugins ]]; then
|
if [[ -d $OMZ/plugins ]]; then
|
||||||
for plugin ($plugins)
|
for plugin ($plugins)
|
||||||
fpath=($OMZ/plugins/$plugin $fpath)
|
fpath=($OMZ/plugins/$plugin $fpath)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue