[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: etc: completion: Filter gratuitous spaces from av
From: |
guix-commits |
Subject: |
branch master updated: etc: completion: Filter gratuitous spaces from available packages. |
Date: |
Sun, 24 Oct 2021 14:19:41 -0400 |
This is an automated email from the git hooks/post-receive script.
nckx pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 55f6d9e etc: completion: Filter gratuitous spaces from available
packages.
55f6d9e is described below
commit 55f6d9e818512b4e3e4adacfa99deb201b6854be
Author: Liliana Marie Prikler <liliana.prikler@gmail.com>
AuthorDate: Sun Oct 24 14:09:47 2021 +0200
etc: completion: Filter gratuitous spaces from available packages.
Tested with:
guix environment --{ad-hoc,pure} zsh guix bash-completion coreutils -- zsh
% fpath=(~/guix/etc/completion/zsh $fpath)
% autoload -U compinit; compinit
* etc/completion/zsh/_guix (_guix_list_available_packages): Remove spaces.
Co-authored-by: Tobias Geerinckx-Rice <me@tobias.gr>
---
etc/completion/zsh/_guix | 1 +
1 file changed, 1 insertion(+)
diff --git a/etc/completion/zsh/_guix b/etc/completion/zsh/_guix
index bbc13c6..9b1f16c 100644
--- a/etc/completion/zsh/_guix
+++ b/etc/completion/zsh/_guix
@@ -58,6 +58,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=("${_guix_available_packages[@]// /}")
_store_cache GUIX_AVAILABLE_PACKAGES _guix_available_packages
fi
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: etc: completion: Filter gratuitous spaces from available packages.,
guix-commits <=