mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-24 12:08:06 +08:00
packages: improve theme detection in installation
This commit is contained in:
parent
53d37a9893
commit
a17107e186
|
@ -39,7 +39,7 @@ function omf.packages.install -a name_or_url
|
|||
|
||||
# If we don't know the package type yet, check if the package is a theme.
|
||||
if not set -q package_type
|
||||
test -f $install_dir/fish_prompt.fish
|
||||
test -f $install_dir/fish_prompt.fish -o -f $install_dir/functions/fish_prompt.fish
|
||||
and set package_type theme
|
||||
or set package_type plugin
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user