From d9b8eabf23ae96fb395a8059c1e08840609499f4 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sun, 28 Apr 2024 19:18:56 +0800 Subject: feat: add `--prompt` option (#454) --- scripts/completions/aichat.bash | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/completions/aichat.bash') 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 -- cgit v1.2.3