akarzim / zsh-docker-aliases

ZSH Docker aliases and functions
MIT License
199 stars 33 forks source link

Unable to install using zplug #7

Closed stianlagstad closed 5 years ago

stianlagstad commented 5 years ago

For some reason I'm unable to install zsh-docker-aliases on one of my laptops. Here's an attempt:

[zplug] Loaded from cache (/home/stian/.zplug/cache)
WARNING:  Failed to load "~/.zplug/repos/akarzim/zsh-docker-aliases/docker-aliases.plugin.zsh" (akarzim/zsh-docker-aliases)
WARNING:  Failed to load "~/.zplug/repos/akarzim/zsh-docker-aliases/zsh-docker-aliases.plugin.zsh" (akarzim/zsh-docker-aliases)
[zplug] Run compinit
➜  ~ rm -rf .zplug/repos/akarzim                    
➜  ~ type restartshell 
restartshell is an alias for exec -l /usr/bin/zsh
➜  ~ restartshell
- akarzim/zsh-docker-aliases: not installed
Install? [y/N]: y
[zplug] Start to install 1 plugins in parallel

 ✘  Unknown error         akarzim/zsh-docker-aliases

[zplug] Elapsed time: 1.1829 sec.
 ==> Installation finished successfully!
WARNING:  Failed to load "~/.zplug/repos/akarzim/zsh-docker-aliases/docker-aliases.plugin.zsh" (akarzim/zsh-docker-aliases)
WARNING:  Failed to load "~/.zplug/repos/akarzim/zsh-docker-aliases/zsh-docker-aliases.plugin.zsh" (akarzim/zsh-docker-aliases)
[zplug] Run compinit
➜  ~ ll .zplug/repos/akarzim/zsh-docker-aliases 
total 36K
drwxrwxr-x 3 stian stian 4,0K des.  19 17:19 .
drwxrwxr-x 3 stian stian 4,0K des.  19 17:19 ..
-rw-rw-r-- 1 stian stian 6,8K des.  19 17:19 docker-aliases.plugin.zsh
drwxrwxr-x 8 stian stian 4,0K des.  19 17:19 .git
-rw-rw-r-- 1 stian stian 1,1K des.  19 17:19 LICENSE
-rw-rw-r-- 1 stian stian 7,2K des.  19 17:19 README.md
-rw-rw-r-- 1 stian stian  255 des.  19 17:19 zsh-docker-aliases.plugin.zsh
➜  ~ zplug "akarzim/zsh-docker-aliases"
[zplug] akarzim/zsh-docker-aliases: already managed
➜  ~ zsh --version
zsh 5.5.1 (x86_64-ubuntu-linux-gnu)
➜  ~ uname -a
Linux ** 4.18.0-13-generic #14-Ubuntu SMP Wed Dec 5 09:04:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
➜  ~ zplug --version
2.4.2

Any tips for how I can debug this? Thanks!

akarzim commented 5 years ago

Hi Stian,

Here is my own zplug configuration:

zplug "akarzim/zsh-docker-aliases", from:github, \
    if:"(( $+commands[docker] ))"

Maybe the from:github option will help you. Did you try to plug zsh-docker-aliases this way?

It seems I run a more recent version of ZSH on macOS. But I'm not sure it will help.

❯ zsh --version
zsh 5.6.2 (x86_64-apple-darwin17.7.0)

❯ zplug --version
2.4.2
stianlagstad commented 5 years ago

This is embarrassing. I had not installed docker on that laptop yet. After I did, the plugin started working without issues. Thanks for the help! :)