-
-
Save ywatase/2914938 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_jsx() | |
{ | |
local cur prev | |
COMPREPLY=() | |
cur=${COMP_WORDS[COMP_CWORD]} | |
prev=${COMP_WORDS[COMP_CWORD-1]} | |
JSX_OPTIONS='\ | |
--add-search-path\ | |
--executable\ | |
--run\ | |
--test\ | |
--output file\ | |
--mode\ | |
--target\ | |
--release\ | |
--optimize\ | |
--enable-type-check\ | |
--enable-source-map\ | |
--version\ | |
--help' | |
COMPREPLY=( $( compgen -W "$JSX_OPTIONS" -- $cur )) | |
return 0 | |
} | |
complete -F _jsx $filenames jsx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment