Add fortune completions (#9177)

* Add fortune completions

Add -r for required parameters

* add updates to changelog
This commit is contained in:
EJ 2022-09-07 03:46:45 -04:00 committed by GitHub
parent 01c8654459
commit 1d1a3d6e82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -68,6 +68,7 @@ Completions
- ``firefox`` - ``firefox``
- ``firefox-developer-edition`` - ``firefox-developer-edition``
- ``fortune``
- ``kind`` (:issue:`9110`) - ``kind`` (:issue:`9110`)
- ``zig`` (:issue:`9083`) - ``zig`` (:issue:`9083`)
- ``sad`` - ``sad``

View File

@ -0,0 +1,12 @@
# Fish completions for fortune <https://www.ibiblio.org/pub/linux/games/amusements/fortune/!INDEX.html>
complete -c fortune -s a -d 'Include offensive fortunes'
complete -c fortune -s e -d 'Equal category weighting'
complete -c fortune -s f -d 'Print fortune categories'
complete -c fortune -s i -d 'Ignore case for regex patterns'
complete -c fortune -s l -d 'Long fortunes only'
complete -c fortune -s m -r -d 'Print all fortunes that match regex pattern'
complete -c fortune -s n -r -d 'Set short/long fortune threshold'
complete -c fortune -s o -d 'Offensive fortunes only'
complete -c fortune -s s -d 'Short fortunes only'
complete -c fortune -s w -d 'Add a wait time for reading'