From 2ac04c7e5ee8f2af9743c7b5229cfe09eb28148f Mon Sep 17 00:00:00 2001 From: Pablo Santiago Blum de Aguiar Date: Tue, 13 Oct 2015 23:51:18 -0300 Subject: [PATCH] =?UTF-8?q?omf.packages.list:=20list=20no=20=E2=80=9Cbuilt?= =?UTF-8?q?in=E2=80=9D=20packages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/omf/cli/omf.packages.list.fish | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/omf/cli/omf.packages.list.fish b/pkg/omf/cli/omf.packages.list.fish index 55f8517..5f57109 100644 --- a/pkg/omf/cli/omf.packages.list.fish +++ b/pkg/omf/cli/omf.packages.list.fish @@ -2,11 +2,15 @@ function __omf.packages.sort for package in (echo $argv | tr ' ' '\n' | sort); echo $package; end end +function __omf.packages.builtin + echo "omf" +end + function __omf.packages.list -a type set -l list test "$type" = "--theme"; or for package in (basename {$OMF_CONFIG,$OMF_PATH/db}/pkg/*) - set list $list $package + contains $package (__omf.packages.builtin); or set list $list $package end test "$type" = "--plugin"; or for package in (basename {$OMF_CONFIG,$OMF_PATH/db}/themes/*) @@ -48,7 +52,7 @@ function __omf.packages.list.installed -a type set -l list test "$type" = "--theme"; or for package in (basename {$OMF_CONFIG,$OMF_PATH}/pkg/*) - set list $list $package + contains $package (__omf.packages.builtin); or set list $list $package end test "$type" = "--plugin"; or for package in (basename {$OMF_CONFIG,$OMF_PATH}/themes/*)