From bb31ee5822180bc340704cc01ed7d1966ff2e238 Mon Sep 17 00:00:00 2001 From: Matteo Rossini Date: Sat, 27 Feb 2016 14:00:56 +0100 Subject: [PATCH] Colorize the slackpkg search results. --- src/slackpkgplus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slackpkgplus.sh b/src/slackpkgplus.sh index f13b443..3005aa3 100755 --- a/src/slackpkgplus.sh +++ b/src/slackpkgplus.sh @@ -1034,7 +1034,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then else printf " %-20s %-24s %-40s \n" "$STATUS" "$REPO" "${RAWNAME}" fi - done|sort + done|sort|( [[ "$CMD" == "search" ]]&&grep -i --color -e ^ -e "$PATTERN"||cat ) } # END function searchlistEX() # Show detailed info for slackpkg info