소스 검색

Merge pull request #1910 from native-api/full_install_message

Place full shell configuration instructions into `pyenv init`
pull/1912/head
native-api 5 년 전
committed by GitHub
부모
커밋
f0a8e72c36
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일16개의 추가작업 그리고 2개의 파일을 삭제
  1. +16
    -2
      libexec/pyenv-init

+ 16
- 2
libexec/pyenv-init 파일 보기

@ -91,7 +91,21 @@ function help_() {
;;
esac
{ echo "# Load pyenv automatically by appending"
{ echo "# Add pyenv executable to PATH by adding"
echo "# the following to ~/.profile:"
echo
case "$shell" in
fish )
echo 'set -Ux PYENV_ROOT $HOME/.pyenv'
echo 'set -Ux fish_user_paths $PYENV_ROOT/bin $fish_user_paths'
;;
* )
echo 'export PYENV_ROOT="$HOME/.pyenv"'
echo 'export PATH="$PYENV_ROOT/bin:$PATH"'
;;
esac
echo
echo "# Load pyenv automatically by appending"
echo "# the following to ${profile}:"
echo
case "$shell" in
@ -103,7 +117,7 @@ function help_() {
;;
esac
echo
echo "# And the following to ~/.profile:"
echo "# and the following to ~/.profile:"
echo
case "$shell" in
fish )

불러오는 중...
취소
저장