Ivan Pozdeev
da9392fd09
Add a hint for cases when ~/.profile sources ~/.rc
Our ~/.rc logic must run after the ~/.profile one
5 vuotta sitten
Ivan Pozdeev
13deda8875
Place full shell configuration instructions into `pyenv init`
including initial PATH and PYENV_ROOT entries.
The migration hint proved to be unclear to users without them.
5 vuotta sitten
Ivan Pozdeev
aab562c696
Add a warning about needing to restart the entire login session
E.g. for a GUI session, ~/.profile is executed by the GUI login "shell" at its startup
so one needs to fully log out and log back in.
Before that, the change would only be seen by shells explicitly started as login shells.
5 vuotta sitten
Ivan Pozdeev
3e3f40fefc
Warn users to add `pyenv init --path` to ~/.profile
To facilitate migration
5 vuotta sitten
Ivan Pozdeev
7838707595
Separate startup logic into PATH and the rest
PATH manipulation should be done in ~/.profile rather than ~/.*rc since .rc can be sourced multiple times
5 vuotta sitten
Ivan Pozdeev
5998f4f7ab
Refactoring: make logic more fit for rearrangement
With functions, we have more leeway in what to call
5 vuotta sitten
Ville Skyttä
61d702405d
feat(init): strip -<suffix> when autodetecting shell
For example bash-5.1, bash-static.
5 vuotta sitten
M. Smits
71d2e4549e
Updated documentation pyenv init for fish shell comform to readme. ( #1703 )
5 vuotta sitten
Andrew Rabert
0f596d2504
Revert "Merge pull request #1153 from cmcginty/remove-sbang"
This reverts commit 070e1c859fb2584c3dbe0a6fbe58cbc80938654e, reversing
changes made to 3faeda67bb .
7 vuotta sitten
Casey McGinty
83e5459cfb
Remove shebang lines from scripts for performance
All scripts in libexec/ (excluding pyenv) are called through pyenv,
therefore the shebang lines are not necessary. On some systems this
provides a measurable increase in performance of the shell prompt.
Related to pyenv/pyenv-virtualenv#259
8 vuotta sitten
McTavish McArdle
5f20bc258f
"." has been deprecated in the fish shell in favor of explicit "source"
10 vuotta sitten
derwolfe
e9aa6cf649
doc: make location to add code to more clear
11 vuotta sitten
Yamashita Yuu
f0e852553a
Import rbenv changes at 7e0e85bdda
11 vuotta sitten
Yamashita Yuu
6f761f8159
Remove `exit 0` from initialization code of fish
12 vuotta sitten
Yamashita Yuu
5dea3c9e63
Import changes from recent rbenv
12 vuotta sitten
Yamashita Yuu
5bff9c773a
Reliably detect parent shell in `pyenv init` ( fixes #93 )
Imported changes from sstephenson/rbenv#453 .
12 vuotta sitten
Yamashita Yuu
6e749ef12f
Import recent changes relating to fish from rbenv
12 vuotta sitten
Yamashita Yuu
93b536863f
Support fish shell
13 vuotta sitten
Yamashita Yuu
fca31c4307
import trivial changes from rbenv 0.4.0
13 vuotta sitten
Yamashita Yuu
da06998457
import rbenv-help from rbenv 0.4.0
13 vuotta sitten
Yamashita Yuu
2457419b4a
created new project.
modified rbenv source for Python and renamed to pyenv.
14 vuotta sitten