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
|
||||
ZSH=${ZSH:-/usr/share/oh-my-zsh}
|
||||
OMZ=$HOME/.zsh
|
||||
OMZ=${OMZ:-$HOME/.omz}
|
||||
|
||||
local config_file plugin
|
||||
plugin=${plugin:=()}
|
||||
|
|
@ -16,7 +16,7 @@ fi
|
|||
for config_file ($ZSH/lib/*.zsh(N))
|
||||
source $config_file
|
||||
|
||||
if [[ -d ~/.omz ]]; then
|
||||
if [[ -d $OMZ ]]; then
|
||||
for config_file ($OMG/*.zsh(N))
|
||||
source $config_file
|
||||
fi
|
||||
|
|
@ -24,7 +24,7 @@ fi
|
|||
for plugin ($plugins)
|
||||
fpath=($ZSH/plugins/$plugin $fpath)
|
||||
|
||||
if [[ -d ~/.omz ]]; then
|
||||
if [[ -d $OMZ ]]; then
|
||||
if [[ -d $OMZ/plugins ]]; then
|
||||
for plugin ($plugins)
|
||||
fpath=($OMZ/plugins/$plugin $fpath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue