unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#51373] [PATCH] etc: completion: Filter gratuitous spaces from available packages.
@ 2021-10-24 12:09 Liliana Marie Prikler
  2021-10-24 13:43 ` Tobias Geerinckx-Rice via Guix-patches via
  0 siblings, 1 reply; 5+ messages in thread
From: Liliana Marie Prikler @ 2021-10-24 12:09 UTC (permalink / raw)
  To: 51373

* etc/completion/zsh/_guix (_guix_list_available_packages): Add a sed filter
to remove spaces.
---
 etc/completion/zsh/_guix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/etc/completion/zsh/_guix b/etc/completion/zsh/_guix
index bbc13c6ca1..6b4060ddeb 100644
--- a/etc/completion/zsh/_guix
+++ b/etc/completion/zsh/_guix
@@ -57,7 +57,7 @@ _guix_list_available_packages()
 {
     if ( [[ ${+_guix_available_packages} -eq 0 ]] || _cache_invalid GUIX_AVAILABLE_PACKAGES ) \
        && ! _retrieve_cache GUIX_AVAILABLE_PACKAGES; then
-        _guix_available_packages=(${${(f)"$(guix package -A | cut -f1)"}})
+        _guix_available_packages=(${${(f)"$(guix package -A | cut -f1 | sed -e 's/ //g')"}})
         _store_cache GUIX_AVAILABLE_PACKAGES _guix_available_packages
     fi
 }
-- 
2.33.1






^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-10-24 19:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-24 12:09 [bug#51373] [PATCH] etc: completion: Filter gratuitous spaces from available packages Liliana Marie Prikler
2021-10-24 13:43 ` Tobias Geerinckx-Rice via Guix-patches via
2021-10-24 13:57   ` Tobias Geerinckx-Rice via Guix-patches via
2021-10-24 14:47     ` Liliana Marie Prikler
2021-10-24 19:01       ` bug#51373: " Tobias Geerinckx-Rice via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).