Skip to content
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

.zplug/bin/install conflict with system /usr/bin/install #586

Open
TheRainstorm opened this issue Feb 21, 2023 · 0 comments
Open

.zplug/bin/install conflict with system /usr/bin/install #586

TheRainstorm opened this issue Feb 21, 2023 · 0 comments

Comments

@TheRainstorm
Copy link

Describe the bug
I am compiling the mosh(a ssh client for mobile network) program from source code using the traditional config + make process. During the config process, the system's install program (/usr/bin/install -c) is required. However, zplug also has an install program ($HOME/.zplug/bin/install), which causes the config to call zplug's install program, resulting in a failure to run.
One solution is to run echo $PATH, manually delete $HOME/.zplug/bin/, and then reset the PATH environment variable.
Although this cannot be considered a bug, I think it is not ideal to conflict with the system's default program. Perhaps zplug can limit its install to its own use?

To Reproduce
Steps to reproduce the behavior:
run which install, it print zplug's install rather than system's.

Expected behavior
zplug don't export its install program to PATH

Screenshots

Env (please complete the following information):

  • zplug version: commit 18cfcd4
  • zsh --version: zsh 5.8.1 (x86_64-ubuntu-linux-gnu)
  • uname -a: Linux Ubuntu22 5.15.0-56-generic Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Minimal zshrc (with less than 30 lines)

Create a minimal reproducing set of configurations for this issue. Please remove all unnecessary parts!

##########
#####  zplug
##########
source ~/.zplug/init.zsh

# Install plugins if there are plugins that have not been installed
if ! zplug check --verbose; then
    printf "Install? [y/N]: "
    if read -q; then
        echo; zplug install
    fi
fi

# Then, source plugins and add commands to $PATH
zplug load

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant