-
-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add ${ENV_ROOT}/shims #5
Conversation
When tmux is started, the execution result of the '$(${ENV_ROOT}/bin/${env} init -)' is 'source $HOME/.anyenv/envs/plenv/libexec/../completions/plenv.zsh' instead of export PATH additional shims. So, is not available * env. As a result of this commit, it will be read twice the shims, but I do not care. e.g.) $HOME/.anyenv/envs/rbenv/bin $HOME/.anyenv/envs/rbenv/shims $HOME/.anyenv/envs/plenv/bin $HOME/.anyenv/envs/plenv/shims $HOME/.anyenv/envs/rbenv/shims $HOME/.anyenv/envs/plenv/shims
Thank you for the PR, but I can't understand the actual problem because I don't use tmux or screen. Could you show me more example outputs? |
Thank you for responding.
What I done is as follows. I added a line to 102 echo "echo $(${ENV_ROOT}/bin/${env} init - ${shell})" I started zsh. This output is export PATH=/Users/monmon/.anyenv/envs/plenv/shims:/Users/monmon/.anyenv/bin:/Users/monmon/local/bin:/Users/monmon/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
export PATH=/Users/monmon/.anyenv/envs/rbenv/shims:/Users/monmon/.anyenv/envs/plenv/shims:/Users/monmon/.anyenv/bin:/Users/monmon/local/bin:/Users/monmon/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin note. I'm using plenv and rbenv. Next, I carried out tmux. This output is source /Users/monmon/.anyenv/envs/plenv/libexec/../completions/plenv.zsh
source /Users/monmon/.anyenv/envs/rbenv/libexec/../completions/rbenv.zsh
source /Users/monmon/.anyenv/envs/plenv/libexec/../completions/plenv.zsh
source /Users/monmon/.anyenv/envs/rbenv/libexec/../completions/rbenv.zsh and PATH is % echo $PATH | perl -pe 's/:/\n/g'
/usr/local/heroku/bin
/Users/monmon/.anyenv/envs/rbenv/bin
/Users/monmon/.anyenv/envs/plenv/bin
/Users/monmon/.anyenv/bin
/Users/monmon/local/bin
/Users/monmon/bin
/usr/local/sbin
/usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
/Users/monmon/.anyenv/envs/rbenv/shims
/Users/monmon/.anyenv/envs/plenv/shims
% which perl
/usr/bin/perl
% where perl
/usr/bin/perl
/Users/monmon/.anyenv/envs/plenv/shims/perl I think there are some better ways to solve this trouble, but I don't know. |
Thank you for the description. Before merging this PR, I'd like to watch an issue of rbenv. So, I'll keep this PR opened for a while. There are some workaround. Is one of them working in your situation? Not executing
|
Thank you for your research! I tried the two solutions, It worked! I'm running zsh + tmux and setting anyenv in --- /etc/zshenv.orig
+++ /etc/zshenv
@@ -1,4 +1,5 @@
# system-wide environment settings for zsh(1)
if [ -x /usr/libexec/path_helper ]; then
+ PATH=""
eval `/usr/libexec/path_helper -s`
fi As for "Not executing Thanks! |
Sorry, I have completely forgot the context and I'm now building a new repository. https://github.com/anyenv/anyenv If you still need this patch, please consider to submit PR to the new repository since this repository will be deprecated. |
When tmux is started, the execution result of the
'$(${ENV_ROOT}/bin/${env} init -)' is 'source
$HOME/.anyenv/envs/plenv/libexec/../completions/plenv.zsh' instead of
export PATH additional shims.
So, is not available *env.
As a result of this commit, it will be read twice the shims, but I do
not care.
e.g.)
$HOME/.anyenv/envs/rbenv/bin
$HOME/.anyenv/envs/rbenv/shims
$HOME/.anyenv/envs/plenv/bin
$HOME/.anyenv/envs/plenv/shims
$HOME/.anyenv/envs/rbenv/shims
$HOME/.anyenv/envs/plenv/shims