mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-22 01:28:40 +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
|
||||
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…
Reference in New Issue
Block a user