mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Cleaned up plugin_sub
This commit is contained in:
parent
c214d08b1b
commit
c1c11f01a7
1 changed files with 1 additions and 1 deletions
2
omz
2
omz
|
|
@ -46,7 +46,7 @@ omz() {
|
||||||
# load plugins (TODO: Make this slimmer and better)
|
# load plugins (TODO: Make this slimmer and better)
|
||||||
# for plugin ($fpath/*.plugin.zsh(N)) source $plugin
|
# for plugin ($fpath/*.plugin.zsh(N)) source $plugin
|
||||||
for plugin ($plugins); do
|
for plugin ($plugins); do
|
||||||
plugin_sub=$(echo $plugin|cut -d'/' -f2)
|
plugin_sub=$(basename $plugin)
|
||||||
if [[ -f $OMZ/plugins/$plugin/$plugin_sub.plugin.zsh ]]; then
|
if [[ -f $OMZ/plugins/$plugin/$plugin_sub.plugin.zsh ]]; then
|
||||||
source $OMZ/plugins/$plugin/$plugin_sub.plugin.zsh
|
source $OMZ/plugins/$plugin/$plugin_sub.plugin.zsh
|
||||||
elif [[ -f $ZSH/plugins/$plugin/$plugin_sub.plugin.zsh ]]; then
|
elif [[ -f $ZSH/plugins/$plugin/$plugin_sub.plugin.zsh ]]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue