z icon indicating copy to clipboard operation
z copied to clipboard

Getting tab completion to work in Zsh

Open bradical opened this issue 11 years ago • 6 comments

I'm using my own fork bradical/dotfiles@master of holman/dotfiles@master. I added 'z' to my dotfiles and loaded it.

But the tab completion doesn't appear to work. Basically, it just completes any directories in the current directory rather than stuff in the z database.

Ideas?

bradical avatar May 30 '13 19:05 bradical

zsh has an absolute ton of configurables for completions, including two entirely separate systems (!) for doing them. I can almost guarantee that something else in all those dotfiles that configures completion breaks z's completion.

rupa avatar May 30 '13 20:05 rupa

Yea, I figured as much. Can you tell me what types of things to look for? I'm really new to zsh.

bradical avatar May 30 '13 20:05 bradical

Nope! I don't use zsh nor do I want to. bash4lyfe

rupa avatar May 30 '13 20:05 rupa

fair enough. thanks for the advice!

bradical avatar May 30 '13 20:05 bradical

Ok, I found the offending line:

setopt complete_aliases

though not sure what to do about it. I'll ask the maker of the dotfiles

Thanks again for the help!

bradical avatar May 30 '13 20:05 bradical

I've also added the tab completion for z with fzf. Check it out: https://github.com/changyuheng/fz

mrjohannchang avatar Jan 22 '19 04:01 mrjohannchang