Skip to content

Why in eval "$(pyenv init -)" as indicated in the README.md? #2261

Answered by hitblast
nyngwang asked this question in Q&A
Discussion options

You must be logged in to vote
  • The eval command is used to execute arguments like a shell command. eval "$(pyenv init -) is used to execute pyenv at the start of each session inside your terminal.

  • When you put the given command inside the .zshrc file, it applies to all interactive shells (such as the terminal inside a VSCode project). On the other hand, .zprofile is used for non-interactive shells.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nyngwang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants