aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2023-01-27 11:47:12 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2023-01-27 11:47:12 +0000
commit1823fa846ae8205c8bbe78204af599277a743896 (patch)
tree8b8f783808e0dce4259e158658944b50805a7e91
parentrender: fix incorrect indent introduced by previous commit (diff)
completions: bash: simplify awk command used to filter terminfo names
-rw-r--r--completions/bash/foot2
1 files changed, 1 insertions, 1 deletions
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}) ) ;;