Thank you :) after disabling ~/.zsh/zshrc.d/121_environment.completions.additional.zsh redirection worked right. I looked inside the file and decided to comment out this part in the beginning of the file, as app completion has never worked after all: ----BEGIN---- ####################################################### #### Make the "open -a" completion work faster ###### ####################################################### # This is to make the "open -a" command completion snappier. # touching the file upon shell startup will trigger various launchd items # that in turn will ensure completions are up to date. We run the command once # now to establish a short-term SpotLight cache. if [[ -f /Library/LaunchAgents/zsh.refresh.completion.plist || \ -f /Library/LaunchAgents/zsh.refresh.completion.plist ]];then touch ~/.zsh/zrefresh 2>/dev/null chmod 777 ~/.zsh/zrefresh 2>/dev/null fi # This seems to work better: if [[ -x /usr/bin/mdfind ]];then ( mdfind -onlyin /Applications -onlyin /Developer \  "kMDItemContentType == 'com.apple.application-*'" >| \ /dev/null 2>&1 & ; ); fi ----END---- I don’t really see what’s wrong with the above, but commenting it out and then re-enabling the file fixed my problem and now even the `open -a ’ works just fine and fast, so ~/.zsh/cache//Mac_applications got filled quickly and completely :D On 08 Jan 2014, at 09:30, Bart Schaefer wrote: > On Tue, Jan 7, 2014 at 9:31 PM, Sohron Viholainen wrote: >> >> I’m using zsh-templates-osx (https://code.google.com/p/zsh-templates-osx/) with vi- and zshall keybindings, but haven’t changed anything in it lately. > > Nevertheless I think this must be where the problem lies. I'm not > going to pretend to have time or interest in poring over that, but I > don't find anything in your pastebin'd .zshrc that is the culprit. > >> For some reason redirection like, say `echo foo > file’ or `echo foo >> file’ doesn’t complete to file.txt or anything existing > > Use and (_complete_help and _complete_debug) to > see if anything looks odd. should give you something very > much like: > > tags in context :completion::complete:-redirect-,>,echo:: > all-files (_files _redirect) > > Output from goes to a file and can be difficult to > interpret. If completion after just "echo" (without redirection) is > still working, capture one debug file that way and a second one with > the redirect so the two can be compared. -- Marko Vihoma http://personal.inet.fi/koti/marko.vihoma/