質問編集履歴
1
最初のエラー修正後、次に出てきたエラーです。fi のエラーです。
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,28 +1,33 @@
|
|
1
1
|
### 前提・実現したいこと
|
2
2
|
プログラミング初心者です
|
3
|
-
ターミナル
|
3
|
+
ターミナル起動時に出ていたエラーメッセージを修正したところ今度は次のようなエラーメッセージが出るようになりました。
|
4
|
+
なお質問を編集しました。
|
4
5
|
どう対処すれば良いか教えてください。
|
5
6
|
|
6
7
|
### 発生している問題・エラーメッセージ
|
8
|
+
```
|
9
|
+
-bash: /Users/username/.bash_profile: line 12: syntax error near unexpected token `fi'
|
10
|
+
-bash: /Users/username/.bash_profile: line 12: ` fi'
|
11
|
+
```
|
7
12
|
|
13
|
+
### .bash_profile の内容
|
8
14
|
```
|
15
|
+
# added by Anaconda3 2018.12 installer
|
16
|
+
# >>> conda init >>>
|
17
|
+
# !! Contents within this block are managed by 'conda init' !!
|
9
|
-
|
18
|
+
__conda_setup="$(CONDA_REPORT_ERRORS=false '/Users/username/anaconda3/bin/c
|
10
|
-
export PYENV_SHELL=bash
|
11
|
-
source '/usr/local/Cellar/pyenv/1.2.9/libexec/../completions/pyenv.bash'
|
12
|
-
|
19
|
+
onda' shell.bash hook 2> /dev/null)"
|
13
|
-
pyenv() {
|
14
|
-
local command
|
15
|
-
command="${1:-}"
|
16
|
-
|
20
|
+
if [ $? -eq 0 ]; then
|
21
|
+
\eval "$__conda_setup"
|
17
|
-
|
22
|
+
else
|
23
|
+
if [ -f "/Users/username/anaconda3/etc/profile.d/conda.sh" ]; then
|
24
|
+
. "/Users/username/anaconda3/etc/profile.d/conda.sh"
|
25
|
+
CONDA_CHANGEPS1=false conda activate base
|
26
|
+
else
|
18
|
-
|
27
|
+
fi
|
19
|
-
|
28
|
+
fi
|
29
|
+
unset __conda_setup
|
30
|
+
# <<< conda init <<<
|
20
|
-
|
31
|
+
eval "$(pyenv init -)"
|
21
|
-
rehash|shell)
|
22
|
-
|
32
|
+
eval "$(pyenv init -)"
|
23
|
-
*)
|
24
|
-
command pyenv "$command" "$@";;
|
25
|
-
esac
|
26
|
-
}': not a valid identifier
|
27
|
-
|
28
33
|
```
|