From 1823fa846ae8205c8bbe78204af599277a743896 Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Fri, 27 Jan 2023 11:47:12 +0000 Subject: [PATCH] completions: bash: simplify awk command used to filter terminfo names --- completions/bash/foot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completions/bash/foot b/completions/bash/foot index 71aea97c..eb17dad1 100644 --- a/completions/bash/foot +++ b/completions/bash/foot @@ -66,7 +66,7 @@ _foot() compopt -o dirnames ;; --term|-t) command -v toe > /dev/null || return 1 - COMPREPLY=( $(compgen -W "$(toe -a | awk '$1 ~ /[+]/ {next}; {print $1}')" -- ${cur}) ) ;; + COMPREPLY=( $(compgen -W "$(toe -a | awk '$1 !~ /[+]/ {print $1}')" -- ${cur}) ) ;; --font|-f) command -v fc-list > /dev/null || return 1 COMPREPLY=( $(compgen -W "$(fc-list : family | sed 's/,/\n/g' | uniq | tr -d ' ')" -- ${cur}) ) ;;