From 32faf74bb7376c9d23423e9b846efc3592c1af32 Mon Sep 17 00:00:00 2001 From: "Stephen M. Coakley" Date: Mon, 24 Apr 2017 16:10:50 -0500 Subject: [PATCH] Detect themes by fish_prompt instead of name --- pkg/omf/functions/packages/omf.packages.install.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/omf/functions/packages/omf.packages.install.fish b/pkg/omf/functions/packages/omf.packages.install.fish index 4bfe1ae..d8f6508 100644 --- a/pkg/omf/functions/packages/omf.packages.install.fish +++ b/pkg/omf/functions/packages/omf.packages.install.fish @@ -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 not set -q package_type - echo $url | grep -q theme- + test -f $install_dir/fish_prompt.fish and set package_type theme or set package_type plugin end