Auto Completion Is Not Working on pressing “TAB” In “oh-my-zsh” Theme

Tab Suggestions are not working in oh-my-zsh theme

When you installed oh-my-zsh theme, it might happens that the Tab completion do not works. If this is the case with you, follow the below steps:

  1. At first open the oh-my-zsh.sh file. Here we are using vim editor.
    vim ~/.oh-my-zsh/oh-my-zsh.sh
  2. Find the 14th line in this file with below content:
    :${ZSH_DISABLE_COMPFIX:=true}
  3. You have to change the value to false from true, as shown below and save the file.
    :${ZSH_DISABLE_COMPFIX:=false}
  4. To apply the changes, execute the following command:
    source ~/.zshrc
  5. Now restart your terminal, you must seen some directories that are not secure. Secure them using below command:
    sudo chmod 755 <insecure_directory_name>
  6. Again open the oh-my-zsh.sh file, and turn the value to true from false and save the file.
    :${ZSH_DISABLE_COMPFIX:=true}
  7. execute below command again:
    source ~/.zshrc
Now, the issue must be fixed. Tab suggestions should work normal.Even if, after logout from zsh and again login into it, causes the same problem then keep the value false only in 14th line of oh-my-zsh.sh and source the .zshrc file. Your problem will be solved permanently.

Leave a Reply

Your email address will not be published. Required fields are marked *