Skip to content

Commit

Permalink
fix: better bash path completion (#1272)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonstefanov authored and bcoe committed Jan 28, 2019
1 parent e0c62c8 commit da75ea2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions completion.sh.hbs
Expand Up @@ -19,10 +19,10 @@ _yargs_completions()

# if no match was found, fall back to filename completion
if [ ${#COMPREPLY[@]} -eq 0 ]; then
COMPREPLY=( $(compgen -f -- "${cur_word}" ) )
COMPREPLY=()
fi

return 0
}
complete -F _yargs_completions {{app_name}}
complete -o default -F _yargs_completions {{app_name}}
###-end-{{app_name}}-completions-###

0 comments on commit da75ea2

Please sign in to comment.