Skip to content

Commit

Permalink
Add completions for -L flag
Browse files Browse the repository at this point in the history
  • Loading branch information
gliargovas committed Oct 20, 2023
1 parent ea6151b commit 2e30ccb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion completions/try.bash
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@ _try() {

case "${cmd}" in
(try)
opts="-n -y -v -h -i -D -U summary commit explore"
opts="-n -y -v -h -i -D -U -L summary commit explore"
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]]
then
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
return 0
fi
case "${prev}" in
(-L)
COMPREPLY=($(compgen -d "${cur}"))
return 0;;
(-D)
COMPREPLY=($(compgen -d "${cur}"))
return 0;;
Expand Down

0 comments on commit 2e30ccb

Please sign in to comment.