Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Path does not update until I logout/log in
- X-seq: zsh-users 17454
- From: John <da_audiophile@xxxxxxxxx>
- To: "zsh-users@xxxxxxx" <zsh-users@xxxxxxx>
- Subject: Path does not update until I logout/log in
- Date: Tue, 4 Dec 2012 06:33:12 -0800 (PST)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1354631592; bh=YDtLwf3CC1dGv81OouTH9bf5WHbhVxCxL1u/bp3seJ8=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=rHauUld6XP80Ow7f+WtcPX086hyTNZmzhoxrjXcYKyV4YFnPvgTbvKTb5Z3M9eH/2Hoc70wIbFvLScaM00RKy53zLBeZUiKmu644hnBh3tnVeWaZK6bqTndKGXA0fc0dyG/zu4ExpQkOCuaQrnAGz8AIMy0MCMsbLCVEq7dHNdY=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=mAutONTgZXlo1HiQaKIhFKfo7Q/FogI+hzB/+CO9H1I+DDOIeOsXIGI5lvaj87n5s/neAr1sgGHBP+cqJin2GrfFnbLpGtuhBCO2mjjZv7vGmHE1QvGnZLNd3qgfrQkZ3rcoo0nItqRu4prZ4GBkx4j1Zjw4evcbKbFF7qeU0qY=;
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Reply-to: John <da_audiophile@xxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author