--I was thinking of using pandas with python --I tried to install pyenv (Reference: [Building a Python environment on a Mac using pyenv]](https://qiita.com/1000ch/items/93841f76ea52551b6a97)) --"$: export" keeps appearing on the terminal ...
$ export
→ "Eh, eh, ??? Did you do something wrong ???"
――I was a little impatient, and (probably) I didn't have an article like "I'm having trouble with the exact same phenomenon!", So I wrote it with the hope that it would be useful to someone.
--Enter the command prompt display format in " user/"user name" /. Zshrc
".
-homebrew is already installed
By the way, the prompt looks like the one below.
#Code in zshrc
PROMPT='[%F{cyan}%# %{No.%h %D %T %$ %C%F{reset_color}]:'
#Display image (color is not reflected)
[% No.58 20-12-28 3:36 User]:python --version
Prompt change reference article: Display / color change of terminal prompt
--The code you wrote was not broken in the ".zshrc" file referenced in the prompt customization **
What does that mean
↓↓↓
PROMPT='[%F{cyan}%# %{No.%h %D %T %$ %C%F{reset_color}]:'export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
↓↓↓
PROMPT='[%F{cyan}%# %{No.%h %D %T %$ %C%F{reset_color}]:'
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
This is what it is.
The export
was listed in the PROMPT
line. ..
--Show hidden files in Mac Finder ⌘command + shift +. (Dot)
--Open the file in " user/"username" /. Zshrc
"(make a backup)
--Separate the lines of PROMPT
code and export code (break a line)
--Save the ".zshrc" file
--Restart terminal
--Done
Anyway, I'm glad it wasn't broken: hushed: ...
-What to do if you destroy the environment variables of Terminal on Mac -[Mac] Solution when major commands cannot be executed in Terminal -[Zsh, bash] How to put in PATH on mac --If you get not found --Shell script export command --Reconfirmed the influence of the export command -How to exit Vim / Vi ――In the above confirmation article, there was a guide to edit with Vim, so I tried it, but I couldn't finish it and checked it (it didn't finish after all).
-teratail: export appears in terminal, I want to erase it ――I think this is probably the number of people who have become the same.
-[Building a Python environment on a Mac using pyenv]](https://qiita.com/1000ch/items/93841f76ea52551b6a97) -Progate: Prepare a Python development environment! (Mac) ――It was really polite.
that's all.
Recommended Posts