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

Add environment variable #320

Merged
merged 1 commit into from Feb 12, 2017
Merged

Add environment variable #320

merged 1 commit into from Feb 12, 2017

Conversation

ghost
Copy link

@ghost ghost commented Dec 21, 2016

Add $ZPLUG_BIN.

@Defman21
Copy link
Contributor

You may want to describe your change in the readme as well: https://github.com/zplug/zplug#4-environment-variables-for-zplug

@babarot
Copy link
Member

babarot commented Dec 22, 2016

What does this change bring? Why is it necessary?

@@ -95,6 +95,7 @@ __zplug::core::core::prepare()
# Add to the PATH
path=(
${ZPLUG_ROOT:+"$ZPLUG_ROOT/bin"}
${ZPLUG_HOME:+"$ZPLUG_BIN"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whether merged or not, the code here seems to be wrong.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I will fix it.

@@ -362,6 +362,10 @@ source ~/.zshrc_secret
zplug "some/command", hook-build:"make && sudo make install"
```

#### `ZPLUG_BIN`

Defaults to `$ZPLUG_BIN`. You can change the save destination of the command's symbol link, eg `~/bin`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • s/symbol/symbolic/
  • s/eg/e.g./

@@ -362,6 +362,10 @@ source ~/.zshrc_secret
zplug "some/command", hook-build:"make && sudo make install"
```

#### `ZPLUG_BIN`

デフォルトは `$ZPLUG_HOME/bin`。コマンドのシンボルリンクの保存先を変更することができる。例えば `~/bin` とか。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • s/シンボル/シンボリック/

Copy link
Member

@babarot babarot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rebase your change. Sorry for the extra work.

@ghost
Copy link
Author

ghost commented Jan 13, 2017

I already did rebase, but did you have any inadequacies?

@Defman21
Copy link
Contributor

Looks like he wants one commit from you ("add $ZPLUG_BIN variable"), not 4.

@ghost
Copy link
Author

ghost commented Jan 13, 2017

Apparently I seem to have misunderstood.

@Defman21: Thank you

@@ -356,6 +356,10 @@ source ~/.zshrc_secret
zplug "some/command", hook-build:"make && sudo make install"
```

#### `ZPLUG_BIN`

Defaults to `$ZPLUG_BIN`. You can change the save destination of the command's symbolic link, e.g. `~/bin`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean: Defaults to $ZPLUG_HOME/bin

@babarot babarot merged commit 0b390bb into zplug:master Feb 12, 2017
@ghost ghost deleted the add-zplug_bin branch February 25, 2017 12:17
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

Successfully merging this pull request may close these issues.

None yet

3 participants