@@ -16,6 +16,7 @@ See the [contribution guidelines](./CONTRIBUTING.md) to start contributing.
16
16
``` bash
17
17
$ /usr/bin/ruby -e " $( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install) "
18
18
```
19
+
19
20
* For more details, go to [ Homebrew] ( https://brew.sh/ ) .*
20
21
21
22
### <a name =" rest " ></a > 2. Install [ Git Duet] ( https://github.com/git-duet/git-duet/#installation )
@@ -37,6 +38,7 @@ $ brew install yarn --without-node
37
38
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.4/install.sh | bash
38
39
$ nvm install
39
40
```
41
+
40
42
* If you are on a Mac and having trouble, make sure to run ` touch ~/.bash_profile ` before running the above command.*
41
43
42
44
### 5. Install [ Direnv] ( https://github.com/direnv/direnv#install )
@@ -46,6 +48,29 @@ $ brew install direnv
46
48
$ echo ' eval "$(direnv hook bash)"' >> ~ /.bashrc
47
49
```
48
50
51
+ Note: In order for the above to work on MacOS, your .bash_profile needs to be setup to read your .bashrc by containing the following:
52
+
53
+ ``` bash
54
+ # Either this
55
+ [[ -r ~ /.bashrc ]] && . ~ /.bashrc
56
+
57
+ # Or this
58
+ if [ -f $HOME /.bashrc ]; then
59
+ source $HOME /.bashrc
60
+ fi
61
+ ```
62
+
63
+ You can check your .bash_profile with:
64
+
65
+ ``` bash
66
+ $ open ~ /.bash_profile
67
+
68
+ # If it doesn't contain either of the above
69
+ $ echo ' [[ -r ~/.bashrc ]] && . ~/.bashrc' >> ~ /.bash_profile
70
+ ```
71
+
72
+ * After doing this, anything in your .bash_profile other than the configuration above can now be moved to your .bashrc*
73
+
49
74
### 6. Restart the terminal and then run the following
50
75
51
76
``` bash
@@ -89,6 +114,7 @@ $ test -d /home/linuxbrew/.linuxbrew && PATH="/home/linuxbrew/.linuxbrew/bin:$PA
89
114
$ test -r ~ /.bash_profile && echo ' export PATH="$(brew --prefix)/bin:$PATH"' >> ~/.bash_profile
90
115
$ echo ' export PATH="$(brew --prefix)/bin:$PATH"' >> ~/.bash_profile
91
116
```
117
+
92
118
* For more details, go to [ Linuxbrew] ( http://linuxbrew.sh/ ) .*
93
119
94
120
### 3. Follow Mac OS Setup starting from [ section 2] ( #rest )
@@ -97,7 +123,7 @@ $ echo 'export PATH="$(brew --prefix)/bin:$PATH"' >>~/.bash_profile
97
123
98
124
> It is recommended that you use a mac or linux, but if you only have a pc, follow these steps to setup ubuntu bash.
99
125
100
- ### 1. Shell Setup
126
+ ### Shell Setup
101
127
102
128
1 . Update your Windows 10 to the latest build.
103
129
2 . Run powershell as administrator and execute the following.
0 commit comments