質問編集履歴

1

追記

2017/08/04 04:42

投稿

roronoazoro
roronoazoro

スコア113

test CHANGED
File without changes
test CHANGED
@@ -7,3 +7,99 @@
7
7
  アドバイスいただけると幸いです。
8
8
 
9
9
  よろしくお願いします。
10
+
11
+
12
+
13
+ **.bashrc**
14
+
15
+ ```bash
16
+
17
+ #PS1="\[\033[36m\]\h:\W \u\$\[\033[0m\]"
18
+
19
+ #PS1="\w\$\[\033[0m\]"
20
+
21
+ #PS1='\[\e[36m\]test-app2 \[\e[33m\]\t \[\e[31m]'
22
+
23
+ git_branch(){
24
+
25
+ echo $(git branch --no-color 2>/dev/null | sed -ne "s/^\* \(.*\)$/\1/p")
26
+
27
+ }
28
+
29
+ PS1='\[\033[36m\]\w\[\033[0m\]:\[\033[35m\]$(git_branch)\[\033[0m\]$'
30
+
31
+ #PS1='——\n\[\033[36m\]\u\[\033[0m\]\[\033[32m\]\w\[\033[0m\]:\[\033[35m\]$(git_branch)\[\033[0m\] $ '
32
+
33
+
34
+
35
+ #macportsの設定
36
+
37
+ export path=/opt/local/bin:/opt/local/sbin:$path
38
+
39
+ export manpath=/opt/local/man:$manpath
40
+
41
+ #ターミナルからVisual Studio Code
42
+
43
+ code () { vscode_cwd="$pwd" open -n -b "com.microsoft.vscode" --args $* }
44
+
45
+
46
+
47
+ ```
48
+
49
+
50
+
51
+ **.bash_profile**
52
+
53
+ ```bash
54
+
55
+ if [ "$TERM_PROGRAM" = "Apple_Terminal" ]; then
56
+
57
+
58
+
59
+ if [ -f ~/.bashrc ]; then
60
+
61
+ source ~/.bashrc
62
+
63
+ fi
64
+
65
+ fi
66
+
67
+
68
+
69
+ if [-f ~/.bashrc];
70
+
71
+ then source ~/.bashrc
72
+
73
+ fi
74
+
75
+
76
+
77
+ ##
78
+
79
+ # Your previous /Users/username/.bash_profile file was backed up as /Users/username/.bash_profile.macports-saved_2017-07-21_at_13:48:00
80
+
81
+ ##
82
+
83
+
84
+
85
+ # MacPorts Installer addition on 2017-07-21_at_13:48:00: adding an appropriate PATH variable for use with MacPorts.
86
+
87
+ export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
88
+
89
+ # Finished adapting your PATH environment variable for use with MacPorts.
90
+
91
+
92
+
93
+ #javaの設定
94
+
95
+ export PATH=$PATH:/Library/Java/JavaVirtualMachines/jdk1.8.0_141.jdk/Contents/Home/bin
96
+
97
+ export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_141.jdk/Contents/Home
98
+
99
+ #mysqlの設定
100
+
101
+ #export PATH="/usr/local/mysql/bin:$PATH"
102
+
103
+
104
+
105
+ ```