Zsh tab completion not working on Mac
See original GitHub issueHi, I’ve installed tab completion script following the commands.
$ curl https://cheat.sh/:zsh > ~/.zsh.d/_cht
$ echo 'fpath=(~/.zsh.d/ $fpath)' >> ~/.zshrc
$ # Open a new shell to load the plugin
However, even if I have ran source ~/.zshrc
, when I type cht.sh go/f
, the suggestion didn’t show up.
Am I missing something? Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:8 (3 by maintainers)
Top Results From Across the Web
shell - Zsh tab-completion not working - Stack Overflow
Hello, after switching from Bash to Zsh on macOS Catalina, Tab completion stopped working for me. Apparently it is working in directories ...
Read more >macOS Fix Zsh auto-completion and get more - Sindastra
The Fix. Now save, exit, close and reopen your terminal. Now your system utilities should have autocompletion!
Read more >tab completion not working · Issue #5651 · ohmyzsh ... - GitHub
I have two accounts on my Macbook, both are installed oh-my-zsh. But one account cannot use the tab completion. When I uninstalled oh-my-zsh...
Read more >shell - zsh tab completion not working specifically for running ...
In general tab-completion is working fine with zsh, except when I try to execute a script as in: zsh script.sh. In this case...
Read more >Moving to zsh, part 5: Completions - Scripting OS X
In the default configuration, tab completion in zsh is very basic. It will complete commands and paths, but not much else.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
_cht
execution was only a reaction to @ab-10’s comment.Yes, after adding
compinit
tab-completion works flawlessly. I wanted only to confirm your suggestion because there were no reactions from others on whethercompinit
solved the issue.Maybe not everyone is aware of
compinit
, and adding a note thatcompinit
is required to the ZSH Tab completion section in README would be suitable.But you are not supposed to execute
_cht
, you just use it.I’ve tested it tab-completion with zsh 5.8, and everything perfectly works.