diff --git a/README.md b/README.md index e439b362b1..ff4373814c 100644 --- a/README.md +++ b/README.md @@ -631,14 +631,11 @@ An example of using the client with Microsoft Entra ID (formerly known as Azure Use the following commands to activate CLI autocompletion for each shell. ### Bash & Zsh -Configure your shell to support global auto completion for python scripts by running: -```shell -activate-global-python-argcomplete -``` Use this command to register `openai` for argument completion using argcomplete for the current terminal session: ```shell eval "$(register-python-argcomplete openai)" ``` +#### Permanent Argument Completion Setup for Bash/Zsh Alternatively, run this command to register `openai` for argument completion permanently, eliminating the need to run the `eval` command each time the terminal is restarted or killed. For Bash: ```shell @@ -654,6 +651,7 @@ To activate completions for Powershell use: ```shell register-python-argcomplete --shell powershell openai | Out-String | Invoke-Expression ``` +#### Permanent Argument Completion Setup for Powershell Alternatively, create a new completion file. This command will persist even if the terminal is killed or restarted. ```shell register-python-argcomplete --shell powershell openai > ~/openai.psm1 @@ -667,6 +665,7 @@ To activate completions for fish use: ```shell register-python-argcomplete --shell fish openai | source ``` +#### Permanent Argument Completion Setup for Fish Alternatively, create a new completion file. This command will persist even if the terminal is killed or restarted. ```shell register-python-argcomplete --shell fish openai > ~/.config/fish/config.fish