Merge pull request #707 from m4rkforks/master

Fix bug when creating new theme
This commit is contained in:
Justin Hileman 2020-11-30 11:47:09 -08:00 committed by GitHub
commit e7a8e74f19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -14,8 +14,8 @@ function omf.packages.list -d 'List installed packages'
set -e show_plugins
end
set -l plugins_paths $OMF_PATH/pkg/*
set -l themes_paths $OMF_PATH/themes/*
set -l plugins_paths {$OMF_CONFIG, $OMF_PATH}/pkg/*
set -l themes_paths {$OMF_CONFIG, $OMF_PATH}/themes/*
if set -q show_plugins
for path in $plugins_paths

View File

@ -1,5 +1,5 @@
function omf.theme.set -a target_theme
if not test -d $OMF_PATH/themes/$target_theme
if not test -d $OMF_PATH/themes/$target_theme -o -d $OMF_CONFIG/themes/$target_theme
return $OMF_INVALID_ARG
end