mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-16 22:05:21 -05:00
completions: bash: simplify awk command used to filter terminfo names
This commit is contained in:
parent
b81b98d47c
commit
1823fa846a
1 changed files with 1 additions and 1 deletions
|
|
@ -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}) ) ;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue