mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-26 10:13:46 +08:00
Merge pull request #503 from oh-my-fish/fix/better-theme-detection
Detect themes by fish_prompt instead of name
This commit is contained in:
commit
174c51bc51
|
@ -37,7 +37,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 we don't know the package type yet, check if the package is a theme.
|
||||||
if not set -q package_type
|
if not set -q package_type
|
||||||
echo $url | grep -q theme-
|
test -f $install_dir/fish_prompt.fish
|
||||||
and set package_type theme
|
and set package_type theme
|
||||||
or set package_type plugin
|
or set package_type plugin
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user