Update bash.d/star_trek_date

This commit is contained in:
MeaTLoTioN 2024-06-19 10:49:02 +01:00
parent fd4d4e0909
commit cbaca42c51

View File

@ -6,7 +6,7 @@ _star_trek_date_complete()
COMPREPLY=() COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}" cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}" prev="${COMP_WORDS[COMP_CWORD-1]}"
opts="$(star_trek_date vulcan -l|grep -v '^Available languages')" opts="$(star_trek_date -l|grep -v '^Available languages')"
if [ ${COMP_CWORD} = 1 ]; then if [ ${COMP_CWORD} = 1 ]; then
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )