es: add completion (#9388)

* Add `es` completion

* Add `-d` option

* Add option's descriptions
This commit is contained in:
Emily Grace Seville 2022-11-27 23:36:17 +10:00 committed by GitHub
parent 253b063c88
commit c49f0c8be9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

11
share/completions/es.fish Normal file
View File

@ -0,0 +1,11 @@
complete -c es -s c -d 'Commands to run'
complete -c es -s s -d 'Read commands from stdin'
complete -c es -s i -d 'Use interactive'
complete -c es -s l -d 'Use login shell'
complete -c es -s e -d 'Exit on command failure'
complete -c es -s v -d 'Echo input to stderr'
complete -c es -s x -d 'Echo commands to stderr'
complete -c es -s n -d 'Do not execute commands, just parse them'
complete -c es -s p -d 'Do not initialize functions from environment'
complete -c es -s o -d 'Do not open /dev/null on 0, 1, 2 descriptors'
complete -c es -s d -d 'Do not trap SIGQUIT or SIGTERM'