Standardized guides

This commit is contained in:
Sun Knudsen 2021-06-28 10:44:39 -04:00
parent 5575f2bbf3
commit 40e842ac3c
No known key found for this signature in database
GPG Key ID: 1FA767862BBD1305
2 changed files with 11 additions and 19 deletions

View File

@ -261,23 +261,19 @@ sudo chown ${USER}:admin /usr/local/sbin
### Step 11: source `/usr/local/sbin` directory
Find which shell is configured using `echo $SHELL`.
> Heads-up: find which shell is configured using `echo $SHELL`.
#### Bash (/bin/bash)
#### Bash (`/bin/bash`)
```shell
cat << "EOF" >> ~/.bash_profile
export PATH=$PATH:/usr/local/sbin
EOF
source ~/.bash_profile
echo 'export PATH=$PATH:/usr/local/sbin' >> ~/.bashrc
source ~/.bashrc
```
#### Z Shell (/bin/zsh)
#### Z Shell (`/bin/zsh`)
```shell
cat << "EOF" >> ~/.zshrc
export PATH=$PATH:/usr/local/sbin
EOF
echo 'export PATH=$PATH:/usr/local/sbin' >> ~/.zshrc
source ~/.zshrc
```

View File

@ -32,23 +32,19 @@ sudo chown ${USER}:admin /usr/local/sbin
### Step 2: add `/usr/local/sbin` directory to `PATH` environment variable
Find which shell is configured using `echo $SHELL`.
> Heads-up: find which shell is configured using `echo $SHELL`.
#### Bash (/bin/bash)
#### Bash (`/bin/bash`)
```shell
cat << "EOF" >> ~/.bashrc
export PATH=$PATH:/usr/local/sbin
EOF
echo 'export PATH=$PATH:/usr/local/sbin' >> ~/.bashrc
source ~/.bashrc
```
#### Z Shell (/bin/zsh)
#### Z Shell (`/bin/zsh`)
```shell
cat << "EOF" >> ~/.zshrc
export PATH=$PATH:/usr/local/sbin
EOF
echo 'export PATH=$PATH:/usr/local/sbin' >> ~/.zshrc
source ~/.zshrc
```