This repository has been archived by the owner on Sep 12, 2018. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
changing is-login to is-interactive works for both iTerm2 and Terminal.
Background:
Installed pyenv using fisher.
fisher pyenv
Using Terminal, running
python
in a directory with3.6.1
in.python-version
, starts python 3.6.1. However, when I use iTerm2, same steps do not have same results. Typingpython
opens up the python 2.7.10 which is the default python shipped with Darwin.Doing
which python
in both the pseudo terms result in different python executables too. In iTerm2/usr/bin/python
and in Terminal it goes to/Users/tdasgupt/.pyenv/shims/python
.Test:
With the above change, correct version of
python
is picked up from the.python-version
files.env
showsPATH
containsPATH=/Users/tdasgupt/.pyenv/shims:
in both iTerm2 and Terminal.which python
goes to/Users/tdasgupt/.pyenv/shims/python
for both.Not tested:
Any scenarios that is dependent on
status is-login
check inpyenv/conf.d/pyenv.fish
. Also any scenario that will double execute this script so as to add the shim path despite it being added. Not sure how to reproduce such a scenario. If such a case exists, probably need to change to check if path haspyenv/shim
before adding.