From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18611 invoked by alias); 4 Dec 2012 15:38:37 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17455 Received: (qmail 22200 invoked from network); 4 Dec 2012 15:38:35 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.216.50 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=XeSds4WTTN92/P+zDw1wISAVKd5SEuIIwwHdvxwSz3s=; b=0oRLDouxL2gKjORLsWkhUnd1sS+4ZRsFz/YCPAYxVR66GGQXf+TbELmP9614yMs2U8 f2ozqbo/Iq6DFwjelTu7K+IuO2aZ+Ga9UUJwwOU7O+tkoEVb4iBWn9fo9elYu8UDiXjv E7Wvo4UHCh/NsKXdi9Io6Wp2RxrBML6jKCHkf2rvOkFdWzb1G/CXeY4fOxUiBQnWK1jc LxXHkFZAJ0uENA0Nai1nq/gVlvOUM6BJOd4jPWxH30amqQQzWsMT1Dcxgco7etC6rtcd P4NheQqO9xysPN/e1SAFvRPPj8ufYXc2/Qz4dWsxEoql/wf0hpkG5xRnx7Zp1TM8JV+r uYXw== MIME-Version: 1.0 In-Reply-To: <1354631592.83211.YahooMailNeo@web140005.mail.bf1.yahoo.com> References: <1354631592.83211.YahooMailNeo@web140005.mail.bf1.yahoo.com> From: Guillaume Brunerie Date: Tue, 4 Dec 2012 10:38:13 -0500 Message-ID: Subject: Re: Path does not update until I logout/log in To: John Cc: "zsh-users@zsh.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, You can use the `rehash' command which will update the list of known comman= ds. You can put this command in your precmd() if you don=E2=80=99t want to have= to do it everytime. Guillaume 2012/12/4 John : > If I install a new executable via my package manager, zsh doesn't allow m= e to see it via auto-completion until I either source my ~/.zshrc again. I= s there a setting that would control this? Note that under bash, I don't n= eed 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 > > Here is my config file: > > $ cat ~/.zshrc > ZSH=3D$HOME/.zsh > > for config_file ($ZSH/lib/*.zsh) source $config_file > > > for i in aliases commonrc functions zsh ; do [[ -f $HOME/.$i ]] && . $HOM= E/.$i ; done > > > PROMPT=3D'%(!.%{$fg_bold[red]%}.%{$fg_bold[white]%}%n@)%m %{$fg_bold[blue= ]%}%(!.%1~.%~) %#%{$reset_color%} ' > > > REPORTTIME=3D5 > > autoload -U compinit > > compinit -i