From f8b5e3bb329e68534a5704c46fc5ae4271febb98 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 30 May 2018 20:45:10 +1000 Subject: [PATCH] completion: Finish args --- completions/neofetch-completion.bash | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/completions/neofetch-completion.bash b/completions/neofetch-completion.bash index 6cac09e7..b4b43f48 100644 --- a/completions/neofetch-completion.bash +++ b/completions/neofetch-completion.bash @@ -6,13 +6,11 @@ shopt -s nullglob _neofetch_completions() { local cur prev - # User input. cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" - # Complete partial matches. IFS=$'\n' read -d "" -ra COMPREPLY \ - < <(compgen -W "$(neofetch -h | awk '/^ --/{printf $1" "}')" -- "$cur") + < <(compgen -W "$(neofetch -h | awk '/ --/{printf $1" "}')" -- "$cur") case "$prev" in "--disable")