mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Use basename, formatting.
This commit is contained in:
parent
e50b14bd3a
commit
599e4fef55
1 changed files with 3 additions and 3 deletions
6
omz
6
omz
|
|
@ -47,11 +47,11 @@ 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
|
||||||
source $ZSH/plugins/$plugin/$plugin_sub.plugin.zsh
|
source $ZSH/plugins/$plugin/$plugin_sub.plugin.zsh
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue