Properly detect Zsh shell
There is no need to define custom shell var, when Zsh can be detected by checking SHELL env var.
This commit is contained in:
@@ -1211,14 +1211,13 @@ func main() {
|
||||
|
||||
#### ZSH Support
|
||||
Auto-completion for ZSH is also supported using the `autocomplete/zsh_autocomplete`
|
||||
file included in this repo. Two environment variables are used, `PROG` and `_CLI_ZSH_AUTOCOMPLETE_HACK`.
|
||||
Set `PROG` to the program name as before, set `_CLI_ZSH_AUTOCOMPLETE_HACK` to `1`, and
|
||||
then `source path/to/autocomplete/zsh_autocomplete`. Adding the following lines to your ZSH
|
||||
configuration file (usually `.zshrc`) will allow the auto-completion to persist across new shells:
|
||||
file included in this repo. One environment variable is used, `PROG`. Set
|
||||
`PROG` to the program name as before, and then `source path/to/autocomplete/zsh_autocomplete`.
|
||||
Adding the following lines to your ZSH configuration file (usually `.zshrc`)
|
||||
will allow the auto-completion to persist across new shells:
|
||||
|
||||
```
|
||||
PROG=<myprogram>
|
||||
_CLI_ZSH_AUTOCOMPLETE_HACK=1
|
||||
source path/to/autocomplete/zsh_autocomplete
|
||||
```
|
||||
#### ZSH default auto-complete example
|
||||
|
Reference in New Issue
Block a user