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

Improve Fish compatiblity with subshells #1038

Closed
wants to merge 1 commit into from
Closed

Improve Fish compatiblity with subshells #1038

wants to merge 1 commit into from

Conversation

kennethreitz
Copy link

This increases compatibility with subshells. Other shells should do this too, but let's start with fish.

@@ -86,8 +86,10 @@ mkdir -p "${RBENV_ROOT}/"{shims,versions}

case "$shell" in
fish )
echo "set -gx PATH '${RBENV_ROOT}/shims' \$PATH"
echo "set -gx RBENV_SHELL $shell"
echo "if status --is-login"
Copy link
Member

Choose a reason for hiding this comment

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

We already do this check when giving people instructions how to set up rbenv init in their fish initialization file:

echo 'status --is-interactive; and source (rbenv init -|psub)'

Do you think that is-interactive check isn't enough? What does is-login achieve?

@mislav mislav added the shell label Nov 29, 2017
@mislav
Copy link
Member

mislav commented May 5, 2021

Closing as wontfix

@mislav mislav closed this May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants