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 ### 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 ```shell
cat << "EOF" >> ~/.bash_profile echo 'export PATH=$PATH:/usr/local/sbin' >> ~/.bashrc
export PATH=$PATH:/usr/local/sbin source ~/.bashrc
EOF
source ~/.bash_profile
``` ```
#### Z Shell (/bin/zsh) #### Z Shell (`/bin/zsh`)
```shell ```shell
cat << "EOF" >> ~/.zshrc echo 'export PATH=$PATH:/usr/local/sbin' >> ~/.zshrc
export PATH=$PATH:/usr/local/sbin
EOF
source ~/.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 ### 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 ```shell
cat << "EOF" >> ~/.bashrc echo 'export PATH=$PATH:/usr/local/sbin' >> ~/.bashrc
export PATH=$PATH:/usr/local/sbin
EOF
source ~/.bashrc source ~/.bashrc
``` ```
#### Z Shell (/bin/zsh) #### Z Shell (`/bin/zsh`)
```shell ```shell
cat << "EOF" >> ~/.zshrc echo 'export PATH=$PATH:/usr/local/sbin' >> ~/.zshrc
export PATH=$PATH:/usr/local/sbin
EOF
source ~/.zshrc source ~/.zshrc
``` ```