From 73b6307399b4f306f3a61e502c28d1315ff8adeb Mon Sep 17 00:00:00 2001 From: Tom Schraitle Date: Mon, 24 Apr 2023 13:56:01 +0200 Subject: [PATCH] Fix #2682: Correct pyenv_user_setup.bash file The manpage contains a reference to a file which does only exist on Debian (/usr/share/pyenv/pyenv_user_setup.bash). It is replaced by its content to make it usable for other distributions. --- man/man1/pyenv.1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/man/man1/pyenv.1 b/man/man1/pyenv.1 index 621a3c3e..0629e894 100644 --- a/man/man1/pyenv.1 +++ b/man/man1/pyenv.1 @@ -1,4 +1,4 @@ -.TH PYENV 1 "12 Dec 2020" "PYENV" +.TH PYENV 1 "24 Apr 2023" "PYENV" .SH NAME pyenv \- Simple Python version management .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 .P .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 -.\"OR -.\"\fBsh echo \-e \if command \-v pyenv 1>/dev/null 2>&1; then\en eval "$(pyenv init \-)"\enfi' >> ~/\.bashrc\fR .RS 3 .P .nh