zpm icon indicating copy to clipboard operation
zpm copied to clipboard

macOS installation error

Open jvzaniolo opened this issue 2 years ago • 9 comments

Describe the bug

Error after installing zpm to macOS .zshrc

$ 
(anon):26: redirection with no command
(anon):24: no matches found: /Users/joao.zaniolo/.zpm/plugins/zpm-zsh---material-colors/dircolors/*.dircolors
$ 
[3]    exit 1     for file in "${_DIRNAME}/dircolors/"*.dircolors; do; cat "$file"; done
$ 

CleanShot 2022-03-25 at 1 11 46@2x

To Reproduce

Add the following to ~/.zshrc

#!/usr/bin/env zsh

source ~/.zpm/zpm.zsh 2>/dev/null || {
  git clone https://github.com/zpm-zsh/zpm ~/.zpm
  source ~/.zpm/zpm.zsh
}

zpm load zpm-zsh/minimal-theme

zpm if-not ssh load                                   \
  zpm-zsh/zsh-autosuggestions,async                   \
  zpm-zsh/fast-syntax-highlighting,async              \
  zpm-zsh/nvm,async

source ~/.zshrc.local 2>/dev/null

Expected behavior

Everything working fine

Additional context

jvzaniolo avatar Mar 25 '22 04:03 jvzaniolo

@jvzaniolo This error isn't related to zpm, it happened in another plugin.

But this plugin also created by me. So, show the output of this

ls /Users/joao.zaniolo/.zpm/plugins/zpm-zsh---material-colors/dircolors/*.dircolors

grigorii-horos avatar Mar 25 '22 10:03 grigorii-horos

Or just disable this plugin...

grigorii-horos avatar Mar 25 '22 10:03 grigorii-horos

Gotcha, this is the output of the command:

$ ls /Users/joao.zaniolo/.zpm/plugins/zpm-zsh---material-colors/dircolors/*.dircolors

/Users/joao.zaniolo/.zpm/plugins/zpm-zsh---material-colors/dircolors/50-linux-desktop.dircolors
/Users/joao.zaniolo/.zpm/plugins/zpm-zsh---material-colors/dircolors/50-linux.dircolors
/Users/joao.zaniolo/.zpm/plugins/zpm-zsh---material-colors/dircolors/50-rc.dircolors
/Users/joao.zaniolo/.zpm/plugins/zpm-zsh---material-colors/dircolors/50-ssh.dircolors
/Users/joao.zaniolo/.zpm/plugins/zpm-zsh---material-colors/dircolors/50-sublime-text.dircolors
/Users/joao.zaniolo/.zpm/plugins/zpm-zsh---material-colors/dircolors/50-systemd.dircolors
/Users/joao.zaniolo/.zpm/plugins/zpm-zsh---material-colors/dircolors/50-vscode.dircolor

jvzaniolo avatar Mar 25 '22 14:03 jvzaniolo

And I think that because of that error, the zpm command or any other command I installed via zpm load is not recognized

jvzaniolo avatar Mar 25 '22 14:03 jvzaniolo

Or just disable this plugin...

@grigorii-horos How can I do that?

jvzaniolo avatar Mar 25 '22 14:03 jvzaniolo

@jvzaniolo I don't know why this happened. Can you disable this plugin temporally?

grigorii-horos avatar Mar 27 '22 11:03 grigorii-horos

@grigorii-horos How can I disable the plugin? I think it’s a dependency of the minimal theme I’m using

jvzaniolo avatar Mar 27 '22 16:03 jvzaniolo

I could just use another theme but I really liked the minimal theme 😕

jvzaniolo avatar Mar 27 '22 16:03 jvzaniolo

@jvzaniolo Hey. Do you have GNU coreutils? I installed FreeBSD to check this bug, and now I know the problem. This plugin tries to run dircolors, but it's missing

grigorii-horos avatar Apr 12 '22 16:04 grigorii-horos