File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1
1
go_path=" /usr/local/go/bin"
2
+ go_bin=" $HOME /go/bin"
2
3
3
4
if [ -d ${go_path} ]; then
4
5
if [ -x " $( command -v go) " ]; then
@@ -7,6 +8,10 @@ if [ -d ${go_path} ]; then
7
8
echo " Adding go to PATH"
8
9
export PATH=$PATH :${go_path}
9
10
fi
11
+
12
+ if [ -d ${go_bin} ]; then
13
+ export PATH=$PATH :${go_bin}
14
+ fi
10
15
fi
11
16
12
17
function dot_go_version() {
Original file line number Diff line number Diff line change
1
+
2
+
3
+
4
+ mongodPath=` which mongod`
5
+ if [ -f ${mongodPath} ]; then
6
+ dbPath=" ~/data/mongodb" ;
7
+ if
8
+ alias mongod=" ulimit -n 1024 && sudo mongod --dbpath ~/data/mongodb"
9
+ fi
10
+
11
+ function dot_mongod_version() {
12
+ if [ -f ${mongodPath} ]; then
13
+ printToolInfo ' mongod' mongodPath
14
+ fi
15
+ }
16
+
17
+ function dot_mongod_whoami() {
18
+
19
+ }
You can’t perform that action at this time.
0 commit comments