zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Zsh not completing redirection anymore
Date: Wed, 8 Jan 2014 17:19:36 -0800	[thread overview]
Message-ID: <CAH+w=7bVZwop9Fvf3o9AGnxMR=-4+cRnV+rg=pt+ubmob-7YQw@mail.gmail.com> (raw)
In-Reply-To: <36AC5DE3-2F13-4FD5-A5DE-C860937B8223@gmail.com>

On Wed, Jan 8, 2014 at 12:56 AM, Sohron Viholainen <lokki1977@gmail.com> wrote:
> 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


??  That's pretty strange on the face of it.  Why is it doing exactly
the same test on the same file twice in the same [[ ]] expression?

>                         touch ~/.zsh/zrefresh 2>/dev/null
>                         chmod 777 ~/.zsh/zrefresh  2>/dev/null

I don't see a reference to this zrefresh file anywhere else in *this*
file (looked up on the git repository), so I suspect the real problem
is going to occur somewhere later in the process where the
timestamp/existence of the zrefresh file is examined.

>         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

This part had better be irrelevant, it doesn't do anything (all output
thrown away) except allow Spotlight to load its internal caches.

What might be interesting is to see a diff of _complete_debug output
in the broken case and the working case, that might show what the
effect of the zrefresh file is.


      reply	other threads:[~2014-01-09  1:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-08  5:31 Sohron Viholainen
2014-01-08  7:30 ` Bart Schaefer
2014-01-08  8:56   ` Sohron Viholainen
2014-01-09  1:19     ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7bVZwop9Fvf3o9AGnxMR=-4+cRnV+rg=pt+ubmob-7YQw@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).