mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-25 02:11:11 +08:00
Merge pull request #707 from m4rkforks/master
Fix bug when creating new theme
This commit is contained in:
commit
e7a8e74f19
|
@ -14,8 +14,8 @@ function omf.packages.list -d 'List installed packages'
|
||||||
set -e show_plugins
|
set -e show_plugins
|
||||||
end
|
end
|
||||||
|
|
||||||
set -l plugins_paths $OMF_PATH/pkg/*
|
set -l plugins_paths {$OMF_CONFIG, $OMF_PATH}/pkg/*
|
||||||
set -l themes_paths $OMF_PATH/themes/*
|
set -l themes_paths {$OMF_CONFIG, $OMF_PATH}/themes/*
|
||||||
|
|
||||||
if set -q show_plugins
|
if set -q show_plugins
|
||||||
for path in $plugins_paths
|
for path in $plugins_paths
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
function omf.theme.set -a target_theme
|
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
|
return $OMF_INVALID_ARG
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user