zsh-users
 help / color / mirror / code / Atom feed
From: Guillaume Brunerie <guillaume.brunerie@gmail.com>
To: John <da_audiophile@yahoo.com>
Cc: "zsh-users@zsh.org" <zsh-users@zsh.org>
Subject: Re: Path does not update until I logout/log in
Date: Tue, 4 Dec 2012 10:38:13 -0500	[thread overview]
Message-ID: <CAFJ3QWJWTRDSz6ZkVOtwQhKyhwwaKi7k0gSC-EzHGuVN2C3oQw@mail.gmail.com> (raw)
In-Reply-To: <1354631592.83211.YahooMailNeo@web140005.mail.bf1.yahoo.com>

Hello,

You can use the `rehash' command which will update the list of known commands.
You can put this command in your precmd() if you don’t want to have to
do it everytime.

Guillaume

2012/12/4 John <da_audiophile@yahoo.com>:
> If I install a new executable via my package manager, zsh doesn't allow me to see it via auto-completion until I either source my ~/.zshrc again.  Is there a setting that would control this?  Note that under bash, I don't need to tweak anything to get this behavior.
>
> Here is another tangible example:
>
> 1) Open two xterms
> 2) In one xterm do this:  sudo ln -s /usr/bin/top /usr/bin/newsymlink
>
> Now, if in the 2nd xterm I start typing, nothing happens for autocomplete:  newsy<TAB>
>
> Here is my config file:
>
> $ cat ~/.zshrc
> ZSH=$HOME/.zsh
>
> for config_file ($ZSH/lib/*.zsh) source $config_file
>
>
> for i in aliases commonrc functions zsh ; do [[ -f $HOME/.$i ]] && . $HOME/.$i ; done
>
>
> PROMPT='%(!.%{$fg_bold[red]%}.%{$fg_bold[white]%}%n@)%m %{$fg_bold[blue]%}%(!.%1~.%~) %#%{$reset_color%} '
>
>
> REPORTTIME=5
>
> autoload -U compinit
>
> compinit -i


  parent reply	other threads:[~2012-12-04 15:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-04 14:33 John
2012-12-04 15:35 ` Norbert Zeh
2012-12-04 16:25   ` Bart Schaefer
2012-12-04 15:38 ` Guillaume Brunerie [this message]
     [not found] ` <20121204153753.GG19774@Hailey>
2012-12-04 18:27   ` John
2012-12-04 20:10     ` Bart Schaefer
2012-12-05  0:37       ` John

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=CAFJ3QWJWTRDSz6ZkVOtwQhKyhwwaKi7k0gSC-EzHGuVN2C3oQw@mail.gmail.com \
    --to=guillaume.brunerie@gmail.com \
    --cc=da_audiophile@yahoo.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).