add new commands to completion
This commit is contained in:
parent
5c9c605184
commit
1f5fe13805
@ -723,6 +723,11 @@ _conn()
|
|||||||
strings="$strings ${profiles[@]}"
|
strings="$strings ${profiles[@]}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
if [ "${COMP_WORDS[1]}" = "config" ]; then
|
||||||
|
if [[ "${COMP_WORDS[2]}" = "--completion" ]] ; then
|
||||||
|
strings="bash zsh"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
COMPREPLY=($(compgen -W "$strings" -- "${COMP_WORDS[3]}"))
|
COMPREPLY=($(compgen -W "$strings" -- "${COMP_WORDS[3]}"))
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -781,6 +786,11 @@ _conn()
|
|||||||
strings="$strings ${profiles[@]}"
|
strings="$strings ${profiles[@]}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
if [ "${COMP_WORDS[2]}" = "config" ]; then
|
||||||
|
if [[ "${COMP_WORDS[3]}" = '--completion' ]] ; then
|
||||||
|
strings="bash zsh"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
compadd "$@" -- `echo $strings`
|
compadd "$@" -- `echo $strings`
|
||||||
fi
|
fi
|
||||||
|
@ -1322,6 +1322,11 @@ _conn()
|
|||||||
strings="$strings ${profiles[@]}"
|
strings="$strings ${profiles[@]}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
if [ "${COMP_WORDS[1]}" = "config" ]; then
|
||||||
|
if [[ "${COMP_WORDS[2]}" = "--completion" ]] ; then
|
||||||
|
strings="bash zsh"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
COMPREPLY=($(compgen -W "$strings" -- "${COMP_WORDS[3]}"))
|
COMPREPLY=($(compgen -W "$strings" -- "${COMP_WORDS[3]}"))
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -1380,6 +1385,11 @@ _conn()
|
|||||||
strings="$strings ${profiles[@]}"
|
strings="$strings ${profiles[@]}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
if [ "${COMP_WORDS[2]}" = "config" ]; then
|
||||||
|
if [[ "${COMP_WORDS[3]}" = '--completion' ]] ; then
|
||||||
|
strings="bash zsh"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
compadd "$@" -- `echo $strings`
|
compadd "$@" -- `echo $strings`
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user