summaryrefslogtreecommitdiff
path: root/completions/fbi
diff options
context:
space:
mode:
Diffstat (limited to 'completions/fbi')
-rw-r--r--completions/fbi17
1 files changed, 8 insertions, 9 deletions
diff --git a/completions/fbi b/completions/fbi
index f8f7a825..9516247b 100644
--- a/completions/fbi
+++ b/completions/fbi
@@ -11,12 +11,12 @@ _fbi()
return
;;
-r|--resolution)
- COMPREPLY+=( $(compgen -W '{1..5}') )
+ COMPREPLY+=( $( compgen -W '{1..5}' ) )
return
;;
-f|--font)
local IFS=$'\n'
- COMPREPLY=( $( compgen -W '$( fc-list 2>/dev/null )' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W '$( fc-list 2> /dev/null )' -- "$cur" ) )
return
;;
-m|--mode)
@@ -36,13 +36,12 @@ _fbi()
esac
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $(compgen -W '--help --version --store --list --text \
- --autozoom --autoup --noautoup --autodown --noautodown --fitwidth \
- --nofitwidth --verbose --noverbose --random --norandom --comments \
- --nocomments --edit --noedit --backup --nobackup --preserve \
- --nopreserve --readahead --noreadahead --cachemem --blend --vt \
- --scroll --timeout --once --noonce --resolution --gamma --font \
- --device --mode' -- "$cur") )
+ COMPREPLY=( $( compgen -W '--help --version --store --list --text
+ --autozoom --{,no}autoup --{,no}autodown --{,no}fitwidth
+ --{,no}verbose --{,no}random --{,no}comments --{,no}edit
+ --{,no}backup --{,no}preserve --{,no}readahead --cachemem --blend
+ --vt --scroll --timeout --{,no}once --resolution --gamma --font
+ --device --mode' -- "$cur" ) )
[[ $COMPREPLY ]] && return
fi