質問編集履歴

1

最初のエラー修正後、次に出てきたエラーです。fi のエラーです。

2019/05/12 11:45

投稿

imotarou
imotarou

スコア11

test CHANGED
File without changes
test CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  プログラミング初心者です
4
4
 
5
- ターミナル起動するいつも以下のエラーメッセージが
5
+ ターミナル起動時に出ていたエラーメッセージを修正したころ今度は次ようなエラーメッセージが出るようになりした
6
+
7
+ なお質問を編集しました。
6
8
 
7
9
  どう対処すれば良いか教えてください。
8
10
 
@@ -10,46 +12,54 @@
10
12
 
11
13
  ### 発生している問題・エラーメッセージ
12
14
 
15
+ ```
13
16
 
17
+ -bash: /Users/username/.bash_profile: line 12: syntax error near unexpected token `fi'
18
+
19
+ -bash: /Users/username/.bash_profile: line 12: ` fi'
14
20
 
15
21
  ```
16
22
 
17
- -bash: export: `export PATH="/Users/username/.pyenv/shims:${PATH}"
18
-
19
- export PYENV_SHELL=bash
20
-
21
- source '/usr/local/Cellar/pyenv/1.2.9/libexec/../completions/pyenv.bash'
22
-
23
- command pyenv rehash 2>/dev/null
24
-
25
- pyenv() {
26
-
27
- local command
28
-
29
- command="${1:-}"
30
-
31
- if [ "$#" -gt 0 ]; then
32
-
33
- shift
34
-
35
- fi
36
23
 
37
24
 
38
-
39
- case "$command" in
40
-
41
- rehash|shell)
25
+ ### .bash_profile の内容
42
-
43
- eval "$(pyenv "sh-$command" "$@")";;
44
-
45
- *)
46
-
47
- command pyenv "$command" "$@";;
48
-
49
- esac
50
-
51
- }': not a valid identifier
52
-
53
-
54
26
 
55
27
  ```
28
+
29
+ # added by Anaconda3 2018.12 installer
30
+
31
+ # >>> conda init >>>
32
+
33
+ # !! Contents within this block are managed by 'conda init' !!
34
+
35
+ __conda_setup="$(CONDA_REPORT_ERRORS=false '/Users/username/anaconda3/bin/c
36
+
37
+ onda' shell.bash hook 2> /dev/null)"
38
+
39
+ if [ $? -eq 0 ]; then
40
+
41
+ \eval "$__conda_setup"
42
+
43
+ else
44
+
45
+ if [ -f "/Users/username/anaconda3/etc/profile.d/conda.sh" ]; then
46
+
47
+ . "/Users/username/anaconda3/etc/profile.d/conda.sh"
48
+
49
+ CONDA_CHANGEPS1=false conda activate base
50
+
51
+ else
52
+
53
+ fi
54
+
55
+ fi
56
+
57
+ unset __conda_setup
58
+
59
+ # <<< conda init <<<
60
+
61
+ eval "$(pyenv init -)"
62
+
63
+ eval "$(pyenv init -)"
64
+
65
+ ```