aboutsummaryrefslogtreecommitdiff
path: root/doc/guix.texi
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-04-29 10:41:11 +0200
committerLudovic Courtès <ludo@gnu.org>2019-04-29 12:19:24 +0200
commitda56f10971e0b6f32969b10e38ed043b2c99bb82 (patch)
tree7e1a95c55132367828a67c1febb7bcdc73951976 /doc/guix.texi
parent9d3053819dfd834a1c29a03427c41d8524b8a7d5 (diff)
downloadgnu-guix-da56f10971e0b6f32969b10e38ed043b2c99bb82.tar
gnu-guix-da56f10971e0b6f32969b10e38ed043b2c99bb82.tar.gz
guix package: Add 'guix search' alias.
* guix/scripts/search.scm: New file. * Makefile.am (MODULES): Add it. * po/guix/POTFILES.in: Add it. * tests/guix-package-aliases.sh: Add test. * doc/guix.texi (Invoking guix package): Document it and use it in a couple of examples.
Diffstat (limited to 'doc/guix.texi')
-rw-r--r--doc/guix.texi13
1 files changed, 8 insertions, 5 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 39d2ee476a..fcee57d9cd 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -2630,6 +2630,8 @@ For your convenience, we also provide the following aliases:
@itemize
@item
+@command{guix search} is an alias for @command{guix package -s},
+@item
@command{guix install} is an alias for @command{guix package -i},
@item
@command{guix remove} is an alias for @command{guix package -r},
@@ -2953,12 +2955,13 @@ name: gmp
@dots{}
@end example
-It is also possible to refine search results using several @code{-s}
-flags. For example, the following command returns a list of board
-games:
+It is also possible to refine search results using several @code{-s} flags to
+@command{guix package}, or several arguments to @command{guix search}. For
+example, the following command returns a list of board games (this time using
+the @command{guix search} alias):
@example
-$ guix package -s '\<board\>' -s game | recsel -p name
+$ guix search '\<board\>' game | recsel -p name
name: gnubg
@dots{}
@end example
@@ -2973,7 +2976,7 @@ for cryptographic libraries, filters out Haskell, Perl, Python, and Ruby
libraries, and prints the name and synopsis of the matching packages:
@example
-$ guix package -s crypto -s library | \
+$ guix search crypto library | \
recsel -e '! (name ~ "^(ghc|perl|python|ruby)")' -p name,synopsis
@end example