Commit 604350fd authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-search: add support --short option

parent 7bc8cf78
...@@ -113,6 +113,13 @@ __epm_search_make_grep() ...@@ -113,6 +113,13 @@ __epm_search_make_grep()
echo -n " | egrep -i -- \"$i\"" echo -n " | egrep -i -- \"$i\""
done done
if [ "$short" ] ; then
echo -n " | sed -e \"s| .*||g\""
fi
# FIXME: move from it
#isatty || return
local COLO="" local COLO=""
# rule for colorife # rule for colorife
for i in $list $listN; do for i in $list $listN; do
...@@ -130,6 +137,7 @@ __epm_search_make_grep() ...@@ -130,6 +137,7 @@ __epm_search_make_grep()
epm_search() epm_search()
{ {
[ -n "$pkg_filenames" ] || fatal "Please, use search with some argument" [ -n "$pkg_filenames" ] || fatal "Please, use search with some argument"
# FIXME: do it better # FIXME: do it better
local MGS local MGS
MGS=$(eval __epm_search_make_grep $quoted_args) MGS=$(eval __epm_search_make_grep $quoted_args)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment