Skip to content

Commit 5f57cdd

Browse files
DavidSoutherDavid Souther
andauthored
Normalize to using .zshrc in all setups. (#164)
Co-authored-by: David Souther <[email protected]>
1 parent 5ebc836 commit 5f57cdd

File tree

13 files changed

+62
-57
lines changed

13 files changed

+62
-57
lines changed

code-401-javascript/4-postgres.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ pg_ctl -D /home/linuxbrew/.linuxbrew/var/postgres start
2727
Note that the postgres server will not automatically re-start after your computer reboots, so you'll need to re-run that command anytime you restart or if your clients are unable to connect. To make that easier, we can create an **alias** so that you can do that with a single command. Run this command to create the alias:
2828

2929
```bash
30-
echo 'alias pgstart="pg_ctl -D /home/linuxbrew/.linuxbrew/var/postgres start"' >> ~/.profile
31-
echo 'alias pgstop="pg_ctl -D /home/linuxbrew/.linuxbrew/var/postgres stop"' >> ~/.profile
30+
echo 'alias pgstart="pg_ctl -D /home/linuxbrew/.linuxbrew/var/postgres start"' >> ~/.zshrc
31+
echo 'alias pgstop="pg_ctl -D /home/linuxbrew/.linuxbrew/var/postgres stop"' >> ~/.zshrc
3232
```
3333

3434
From this point onward, you can simply run `pgstart` or `pgstop` to start and stop your postgres server
@@ -73,4 +73,4 @@ Type `\q` to exit the postgres client application and return to your bash shell.
7373

7474
---
7575

76-
### [⇐ Previous](./3-aws.md) | [Home ⇒](./)
76+
### [⇐ Previous](./3-aws.md) | [Home ⇒](./)

system-setup/1-environment.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Make back ups of the files listed below. You may get a `No such file or director
1717
- `mv ~/.bashrc .bashrc.bak`
1818
- `mv ~/.bash_profile .bash_profile.bak`
1919
- `mv ~/.profile .profile.bak`
20+
- `mv ~/.zprofile .zprofile.bak`
2021
- `mv ~/.zshrc .zshrc.bak`
2122

2223
## Windows & Linux Users Only
@@ -25,7 +26,7 @@ Make back ups of the files listed below. You may get a `No such file or director
2526
sudo apt-get install zsh
2627
```
2728

28-
After installing, type `zsh`. Zsh will ask you to choose some configuration. We will do this later by installing `oh-my-zsh`. Chose option 0 to create the config file (prevent this message to show again).
29+
After installing, type `zsh`. Zsh will ask you to choose some configuration. We will do this later by installing `oh-my-zsh`. Chose option 0 to create the config file (prevent this message to show again).
2930

3031
Now, let's move on to getting our development applications installed.
3132

system-setup/3-homebrew.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ Homebrew is a tool that simplifies installing applications on your machine. Thin
77
## Verify if Homebrew is already installed
88

99
- In your terminal, run: `brew --version`
10-
- *If output is similar to:* `Homebrew 3.4.11`
10+
- _If output is similar to:_ `Homebrew 3.4.11`
1111
- Run: `brew update` to get latest updates
1212
- Move on to [next page](./4-git.md)
13-
- *If output is not similar to the above*, continue with instructions on this page.
13+
- _If output is not similar to the above_, continue with instructions on this page.
1414

1515
---
1616

1717
1. In your terminal, enter the following command:
1818
- `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`
19-
- You will be prompted several times along the way. Enter your password when prompted, accept all the defaults, say "Yes" if prompted. (***Note:*** *You will not have any visual feedback on your screen as you type. It is protecting your password by not displaying ANYTHING at all to the screen, but it is registering your key strokes.*)
19+
- You will be prompted several times along the way. Enter your password when prompted, accept all the defaults, say "Yes" if prompted. (**_Note:_** _You will not have any visual feedback on your screen as you type. It is protecting your password by not displaying ANYTHING at all to the screen, but it is registering your key strokes._)
2020
- **MAC Users**
2121
- You will likely be prompted to install XCode command line tools. Say "Yes".
2222
- When it completes, follow the "Next steps:" instructions, which should be:
23-
- ```echo 'eval "$(`which brew` shellenv)"' >> $HOME/.zprofile```
24-
- ```eval "$(`which brew` shellenv)"```
23+
- `` echo 'eval "$(`which brew` shellenv)"' >> $HOME/.zshrc ``
24+
- `` eval "$(`which brew` shellenv)" ``
2525
- **Linux and Windows Users**
2626
- Once the main installation finishes (could take up to 30 minutes), enter these commands, one at a time in your terminal:
2727
- `test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)`
@@ -30,7 +30,7 @@ Homebrew is a tool that simplifies installing applications on your machine. Thin
3030

3131
Once the installation has completed, **run:**
3232

33-
`brew doctor`
33+
`brew doctor`
3434

3535
**if** return output is:
3636

@@ -50,18 +50,17 @@ working fine: please don't worry or file an issue; just ignore this. Thanks!
5050

5151
`brew update`
5252

53-
**else if** return output is:
53+
**else if** return output is:
5454

5555
```bash
5656
brew: command not found
5757
```
5858

5959
**then** run these commands (if you're on a Windows or Linux system)
6060

61-
1. ```echo 'export BREW_HOME="/home/linuxbrew/.linuxbrew/bin"' >> $HOME/.zprofile```
62-
1. ```echo 'export PATH="$PATH:$BREW_HOME"' >> $HOME/.zprofile```
63-
1. ```reset```
64-
61+
1. `echo 'export BREW_HOME="/home/linuxbrew/.linuxbrew/bin"' >> $HOME/.zshrc`
62+
1. `echo 'export PATH="$PATH:$BREW_HOME"' >> $HOME/.zshrc`
63+
1. `reset`
6564

6665
> **If `brew update` still fails to run, [click here](../error/error.md) and do not continue with the following steps until you have Homebrew properly installed**
6766

system-setup/6-ohmyzsh.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Now it's time to unleash your terminal potential.
55
## Verify if Oh-My-Zsh is already installed
66

77
- In your terminal, run: `zsh --version`
8-
- *If output is this version or higher*:
8+
- _If output is this version or higher_:
99
- `zsh 5.8`
1010
- Continue to [next page](./7-node.md)
11-
- *If output is not similar to the above*, continue with instructions on this page.
11+
- _If output is not similar to the above_, continue with instructions on this page.
1212

1313
---
1414

@@ -27,12 +27,13 @@ At this point you **`must`** restart your terminal.
2727
## **Confirmation**
2828

2929
- Re-open your terminal and run the command: `brew --version`
30+
3031
- If the terminal outputs `Homebrew 3.5` or greater:
3132
- You're ready to continue through the setup guide.
3233
- **If you get an error** such as `zsh: command not found: brew`, then run the following commands:
3334

34-
- `echo 'export BREW_HOME="/home/linuxbrew/.linuxbrew/bin"' >> $HOME/.zprofile`
35-
- `echo 'export PATH="$PATH:$BREW_HOME"' >> $HOME/.zprofile`
35+
- `echo 'export BREW_HOME="/home/linuxbrew/.linuxbrew/bin"' >> $HOME/.zshrc`
36+
- `echo 'export PATH="$PATH:$BREW_HOME"' >> $HOME/.zshrc`
3637
- `reset`
3738
- Confirm with the command: `brew --version`
3839

system-setup/linux/1-environment.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Make back ups of the files listed below. You may get a `No such file or director
1717
- `mv ~/.bashrc .bashrc.bak`
1818
- `mv ~/.bash_profile .bash_profile.bak`
1919
- `mv ~/.profile .profile.bak`
20+
- `mv ~/.zprofile .zprofile.bak`
2021
- `mv ~/.zshrc .zshrc.bak`
2122

2223
## Install Z Shell
@@ -25,7 +26,7 @@ Make back ups of the files listed below. You may get a `No such file or director
2526
sudo apt-get install zsh
2627
```
2728

28-
After installing, type `zsh`. Zsh will ask you to choose some configuration. We will do this later by installing `oh-my-zsh`. Chose option 0 to create the config file (prevent this message to show again).
29+
After installing, type `zsh`. Zsh will ask you to choose some configuration. We will do this later by installing `oh-my-zsh`. Chose option 0 to create the config file (prevent this message to show again).
2930

3031
Now, let's move on to getting our development applications installed.
3132

system-setup/linux/3-homebrew.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ Homebrew is a tool that simplifies installing applications on your machine. Thin
77
## Verify if Homebrew is already installed
88

99
- In your terminal, run: `brew --version`
10-
- *If output is similar to:* `Homebrew 3.4.11`
10+
- _If output is similar to:_ `Homebrew 3.4.11`
1111
- Run: `brew update` to get latest updates
1212
- Move on to [next page](./4-git.md)
13-
- *If output is not similar to the above*, continue with instructions on this page.
13+
- _If output is not similar to the above_, continue with instructions on this page.
1414

1515
---
1616

1717
In your terminal, enter the following command:
1818

1919
- `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`
20-
- You will be prompted several times along the way. Enter your password when prompted, accept all the defaults, say "Yes" if prompted. (***Note:*** *You will not have any visual feedback on your screen as you type. It is protecting your password by not displaying ANYTHING at all to the screen, but it is registering your key strokes.*)
20+
- You will be prompted several times along the way. Enter your password when prompted, accept all the defaults, say "Yes" if prompted. (**_Note:_** _You will not have any visual feedback on your screen as you type. It is protecting your password by not displaying ANYTHING at all to the screen, but it is registering your key strokes._)
2121
- Once the main installation finishes (could take up to 30 minutes), **look at the output at the bottom of your terminal**. You may see an arrow pointing to "Next Steps" line with 2 commands.
2222

2323
![Homebrew No Next Steps example](../../images/homebrew-next-steps.png)
@@ -30,7 +30,7 @@ In your terminal, enter the following command:
3030

3131
Once the installation has completed, **run:**
3232

33-
`brew doctor`
33+
`brew doctor`
3434

3535
**if** return output is:
3636

@@ -50,18 +50,17 @@ working fine: please don't worry or file an issue; just ignore this. Thanks!
5050

5151
`brew update`
5252

53-
**else if** return output is:
53+
**else if** return output is:
5454

5555
```bash
5656
brew: command not found
5757
```
5858

5959
**then** run these commands
6060

61-
1. ```echo 'export BREW_HOME="/home/linuxbrew/.linuxbrew/bin"' >> $HOME/.zprofile```
62-
1. ```echo 'export PATH="$PATH:$BREW_HOME"' >> $HOME/.zprofile```
63-
1. ```reset```
64-
61+
1. `echo 'export BREW_HOME="/home/linuxbrew/.linuxbrew/bin"' >> $HOME/.zshrc`
62+
1. `echo 'export PATH="$PATH:$BREW_HOME"' >> $HOME/.zshrc`
63+
1. `reset`
6564

6665
> **If `brew update` still fails to run, [click here](../../error/error.md) and do not continue with the following steps until you have Homebrew properly installed**
6766

system-setup/linux/6-ohmyzsh.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Now it's time to unleash your terminal potential.
55
## Verify if Oh-My-Zsh is already installed
66

77
- In your terminal, run: `zsh --version`
8-
- *If output is this version or higher*:
8+
- _If output is this version or higher_:
99
- `zsh 5.8`
1010
- Continue to [next page](./7-node.md)
11-
- *If output is not similar to the above*, continue with instructions on this page.
11+
- _If output is not similar to the above_, continue with instructions on this page.
1212

1313
---
1414

@@ -27,12 +27,13 @@ At this point you **`must`** restart your terminal.
2727
## **Confirmation**
2828

2929
- Re-open your terminal and run the command: `brew --version`
30+
3031
- If the terminal outputs `Homebrew 3.5` or greater:
3132
- You're ready to continue through the setup guide.
3233
- **If you get an error** such as `zsh: command not found: brew`, then run the following commands:
3334

34-
- `echo 'export BREW_HOME="/home/linuxbrew/.linuxbrew/bin"' >> $HOME/.zprofile`
35-
- `echo 'export PATH="$PATH:$BREW_HOME"' >> $HOME/.zprofile`
35+
- `echo 'export BREW_HOME="/home/linuxbrew/.linuxbrew/bin"' >> $HOME/.zshrc`
36+
- `echo 'export PATH="$PATH:$BREW_HOME"' >> $HOME/.zshrc`
3637
- `reset`
3738
- Confirm with the command: `brew --version`
3839

system-setup/mac/1-environment.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Make back ups of the files listed below. You may get a `No such file or director
1717
- `mv ~/.bashrc .bashrc.bak`
1818
- `mv ~/.bash_profile .bash_profile.bak`
1919
- `mv ~/.profile .profile.bak`
20+
- `mv ~/.zprofile .zprofile.bak`
2021
- `mv ~/.zshrc .zshrc.bak`
2122

2223
Now, let's move on to getting our development applications installed.

system-setup/mac/2-homebrew.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ Homebrew is a tool that simplifies installing applications on your machine. Thin
77
## Verify if Homebrew is already installed
88

99
- In your terminal, run: `brew --version`
10-
- *If output is similar to:* `Homebrew 3.4.11`
10+
- _If output is similar to:_ `Homebrew 3.4.11`
1111
- Run: `brew update` to get latest updates
1212
- Move on to [next page](./3-git.md)
13-
- *If output is not similar to the above*, continue with instructions on this page.
13+
- _If output is not similar to the above_, continue with instructions on this page.
1414

1515
---
1616

1717
In your terminal, enter the following command:
1818

1919
- `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`
2020

21-
- You will be prompted several times along the way. Enter your password when prompted, accept all the defaults, say "Yes" if prompted. (***Note:*** *You will not have any visual feedback on your screen as you type. It is protecting your password by not displaying ANYTHING at all to the screen, but it is registering your key strokes.*)
21+
- You will be prompted several times along the way. Enter your password when prompted, accept all the defaults, say "Yes" if prompted. (**_Note:_** _You will not have any visual feedback on your screen as you type. It is protecting your password by not displaying ANYTHING at all to the screen, but it is registering your key strokes._)
2222

2323
- You will likely be prompted to install XCode command line tools. Say "Yes".
2424

@@ -27,8 +27,8 @@ In your terminal, enter the following command:
2727
![Homebrew No Next Steps example](../../images/homebrew-next-steps.png)
2828

2929
- which should be similar to:
30-
- ```echo 'eval "$(`which brew` shellenv)"' >> $HOME/.zprofile```
31-
- ```eval "$(`which brew` shellenv)"```
30+
- `` echo 'eval "$(`which brew` shellenv)"' >> $HOME/.zshrc ``
31+
- `` eval "$(`which brew` shellenv)" ``
3232

3333
Once the installation has completed, **run:**
3434

@@ -52,7 +52,7 @@ working fine: please don't worry or file an issue; just ignore this. Thanks!
5252

5353
- `brew update`
5454

55-
**else if** return output is:
55+
**else if** return output is:
5656

5757
```bash
5858
brew: command not found

system-setup/mac/5-ohmyzsh.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Now it's time to unleash your terminal potential.
55
## Verify if Oh-My-Zsh is already installed
66

77
- In your terminal, run: `zsh --version`
8-
- *If output is this version or higher*:
8+
- _If output is this version or higher_:
99
- `zsh 5.8`
1010
- Continue to [next page](./6-node.md)
11-
- *If output is not similar to the above*, continue with instructions on this page.
11+
- _If output is not similar to the above_, continue with instructions on this page.
1212

1313
---
1414

@@ -27,12 +27,13 @@ At this point you **`must`** restart your terminal.
2727
## **Confirmation**
2828

2929
- Re-open your terminal and run the command: `brew --version`
30+
3031
- If the terminal outputs `Homebrew 3.5` or greater:
3132
- You're ready to continue through the setup guide.
3233
- **If you get an error** such as `zsh: command not found: brew`, then run the following commands:
3334

34-
- `echo 'export BREW_HOME="/home/linuxbrew/.linuxbrew/bin"' >> $HOME/.zprofile`
35-
- `echo 'export PATH="$PATH:$BREW_HOME"' >> $HOME/.zprofile`
35+
- `echo 'export BREW_HOME="/home/linuxbrew/.linuxbrew/bin"' >> $HOME/.zshrc`
36+
- `echo 'export PATH="$PATH:$BREW_HOME"' >> $HOME/.zshrc`
3637
- `reset`
3738
- Confirm with the command: `brew --version`
3839

0 commit comments

Comments
 (0)