Skip to content

Instantly share code, notes, and snippets.

@ywatase
Created June 12, 2012 04:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ywatase/2914938 to your computer and use it in GitHub Desktop.
Save ywatase/2914938 to your computer and use it in GitHub Desktop.
_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