Excluding Environment Variables from ZSH Autocomplete

environment-variablesshellzsh

Quick example:

~ $ wor<TAB>
~ $ WORDCHARS=                                                                                                                                                                                                             
WORDCHARS    WORKON_HOME  WORKON_HOME  workon 

workon is the desired command. Is there a way to exclude the environment variables from auto-completing in ZSH?

Best Answer

I didn't find such an option, but maybe you are helped, if your completion would be case sensitive. you can set this in your ~/.zshrc:

# Set to this to use case-sensitive completion
CASE_SENSITIVE="true"