-
-
Notifications
You must be signed in to change notification settings - Fork 230
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
Setup paths after variables have been initialized #372
Conversation
Ran into this as well, seems this PR fixes it. |
|
@39e I'm not setting To illustrate, here's my minimal [[ -d ~/.zplug ]] || {
git clone https://github.com/zplug/zplug.git ~/.zplug
source ~/.zplug/init.zsh
}
source ~/.zplug/init.zsh
zplug "zsh-users/zsh-syntax-highlighting", defer:2
zplug "zsh-users/zsh-history-substring-search", defer:2
zplug "zsh-users/zsh-completions"
zplug "zsh-users/zsh-autosuggestions", defer:2
zplug "junegunn/fzf-bin", as:command, from:gh-r, use:"*linux*amd64*", rename-to:fzf
zplug "junegunn/fzf", as:command, use:"bin/fzf-tmux", rename-to:fzf-tmux
zplug "junegunn/fzf", use:"shell/*.zsh", defer:2
zplug "nojhan/liquidprompt"
zplug "lib/misc", from:oh-my-zsh
zplug "lib/termsupport", from:oh-my-zsh
zplug "lib/theme-and-appearance", from:oh-my-zsh
zplug "zplug/zplug", hook-build:"zplug --self-manage"
zplug "b4b4r07/enhancd", use:enhancd.sh
zplug "pipeseroni/pipes.sh", as:command, use:pipes.sh
zplug "joeyh/myrepos", as:command, use:mr
zplug "github/hub", as:command, from:gh-r, use:"*linux*amd64*"
zplug "plugins/github", from:oh-my-zsh
zplug "plugins/git", from:oh-my-zsh
zplug "mapio/tmux-tail-f", as:command, use:tmux-tail-f
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
else
echo
fi
fi
zplug load I'm using
|
PR above fixes the most important issue mentioned here, but read on.
Erm, nope: As You can see on this line README says:
Current implementation installs commands properly (i.e in default value of Both issues (unneeded |
Prefer usage of $ZPLUG_BIN and use $ZPLUG_ROOT/bin as a fallback.
`zplug --self-manage` isn't working for me now, so leave it out for the time being, until zplug/zplug#387 gets resolved (e.g. via zplug/zplug#372)
Any updates on this? Is there anything else missing here for this PR to be merged? |
Yes, it's ready. Ping @b4b4r07 |
Whatever |
What happened? |
Closed due to lack of response from project maintainers |
@b4b4r07 |
Yeah, that's sad. I completely stopped using The problem is that we have the opposite of content over form here. There was a lot of effort to create a great README (with badges, gifs, pros, images, docs) to attract new users, but there is a very little effort to maintain issues (=to retain these users); it is disproportionate. I'd rather see a poor README in exchange for a stable, solid and well-maintained software. I can totally understand why @fbergroth got pissed off. Anyway, if you are reading this, Fredrik, thanks for your work anyway. Let's move on. |
Hey, thanks for your replies. I'm not upset, and don't really mind that this project isn't well maintained. It's easy to fork it if anyone wishes to do so. As @thiagowfx, I've moved on too, and just don't want to deal with this PR anymore. |
This seems so simple and while it's not really difficult I really don't want to have to maintain my own fork if I can avoid it (probably will for now anyway though). If this could get merged at some point it would be awesome! |
@ELLIOTTCABLE simple enough...I just merged those ones into my fork. FYI, I also forked the installer script so I could use that to install from my fork (my fork is here) |
And how might one use your fork @ev0rtex ? I have tried: |
(Looks like self-management needs a little work, too — might as well abstract it so any fork can self-manage. I've got a local branch where I'm working on that, but won't have time to PR for a while, unfortunately …) |
@ELLIOTTCABLE I'd be curious what approach you're taking...I think the ability for any fork to self manage would be awesome |
@martisj Assuming I modified all the correct references in my fork of the installer you could probably just add something to the top of your ~/.zshrc # ------------------------------------------------------- #
# Zplug #
# ------------------------------------------------------- #
export ZPLUG_HOME="${HOME}/.zplug"
[ -d "${ZPLUG_HOME}" ] || curl -fsSL --proto-redir -all,https https://raw.githubusercontent.com/ev0rtex/zplug-installer/master/installer.zsh | zsh
source "${ZPLUG_HOME}/init.zsh"
# ------------------------------------------------------- #
# Plugins #
# ------------------------------------------------------- #
zplug "zplug/zplug", hook-build:"zplug --self-manage"
# Custom modules/scripts
zplug "~/.zsh/config/0", use:"*.zsh", from:local, defer:0
zplug "~/.zsh/config/1", use:"*.zsh", from:local, defer:1
zplug "~/.zsh/config/2", use:"*.zsh", from:local, defer:2
zplug "~/.zsh/config/3", use:"*.zsh", from:local, defer:3
# Theme
zplug "bhilburn/powerlevel9k", use:"powerlevel9k.zsh-theme", as:theme
.
.
. |
Sorry for late response. Nice work @fbergroth but it's conflicted now.. |
Ahh, I found similar PR in #476 So I'll merge it into master. |
I noticed
~/.zplug/bin
was not in my$PATH
when usingzplug --self-manage
. It turned out$ZPLUG_BIN
was empty because__zplug::core::core::variable
hadn't been called.On a sidenote,
${ZPLUG_ROOT:+"$ZPLUG_ROOT/bin"}
adds~/.zplug/repos/zplug/zplug/bin
to the path withzplug --self-manage
. Is that intended? Otherwise it seems to equal$ZPLUG_BIN
, which makes it redundant.