Merge pull request #707 from m4rkforks/master

Fix bug when creating new theme
pull/651/head^2
Justin Hileman 4 years ago committed by GitHub
commit e7a8e74f19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

@ -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

Loading…
Cancel
Save