mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
Merge pull request #2687 from tomschr/bug2682-fix-manpage
Fix #2682: Correct pyenv_user_setup.bash file
This commit is contained in:
commit
aa5fd27e2f
1 changed files with 6 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
.TH PYENV 1 "12 Dec 2020" "PYENV"
|
.TH PYENV 1 "24 Apr 2023" "PYENV"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
pyenv \- Simple Python version management
|
pyenv \- Simple Python version management
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -12,10 +12,12 @@ pyenv lets you easily switch between multiple versions of Python\. It's simple,
|
||||||
\fBAppend\fR the following to \fB$HOME/.bashrc\fR
|
\fBAppend\fR the following to \fB$HOME/.bashrc\fR
|
||||||
.P
|
.P
|
||||||
.RS 15
|
.RS 15
|
||||||
source /usr/share/pyenv/pyenv_user_setup.bash
|
.nf
|
||||||
|
if command -v pyenv 1>/dev/null 2>&1; then\n
|
||||||
|
eval "$(pyenv init -)" \n
|
||||||
|
fi
|
||||||
|
.fi
|
||||||
.RE
|
.RE
|
||||||
.\"OR
|
|
||||||
.\"\fBsh echo \-e \if command \-v pyenv 1>/dev/null 2>&1; then\en eval "$(pyenv init \-)"\enfi' >> ~/\.bashrc\fR
|
|
||||||
.RS 3
|
.RS 3
|
||||||
.P
|
.P
|
||||||
.nh
|
.nh
|
||||||
|
|
Loading…
Reference in a new issue