diff options
| author | sigoden <sigoden@gmail.com> | 2024-04-28 19:18:56 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-28 19:18:56 +0800 |
| commit | d9b8eabf23ae96fb395a8059c1e08840609499f4 (patch) | |
| tree | 73c69f56c5ecd718daacd9450bb25ec8db0649b1 /scripts/completions/aichat.bash | |
| parent | 4b205c4bac414f625001faa39fe36f9e118dfaa3 (diff) | |
| download | aichat-d9b8eabf23ae96fb395a8059c1e08840609499f4.tar.gz | |
feat: add `--prompt` option (#454)
Diffstat (limited to 'scripts/completions/aichat.bash')
| -rw-r--r-- | scripts/completions/aichat.bash | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/completions/aichat.bash b/scripts/completions/aichat.bash index f0b9bc3..cb9b708 100644 --- a/scripts/completions/aichat.bash +++ b/scripts/completions/aichat.bash @@ -19,7 +19,7 @@ _aichat() { case "${cmd}" in aichat) - opts="-m -r -s -e -c -f -H -S -w -h -V --model --role --session --save-session --serve --execute --code --file --no-highlight --no-stream --wrap --light-theme --dry-run --info --list-models --list-roles --list-sessions --help --version" + opts="-m -r -s -e -c -f -H -S -w -h -V --model --prompt --role --session --save-session --serve --execute --code --file --no-highlight --no-stream --wrap --light-theme --dry-run --info --list-models --list-roles --list-sessions --help --version" if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) return 0 @@ -49,6 +49,10 @@ _aichat() { COMPREPLY=($(compgen -W "$("$1" --list-models)" -- "${cur}")) return 0 ;; + --prompt) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; -r|--role) COMPREPLY=($(compgen -W "$("$1" --list-roles)" -- "${cur}")) return 0 |
