mirror of
https://github.com/sunknudsen/privacy-guides.git
synced 2025-02-23 01:03:59 +00:00
Standardized guides
This commit is contained in:
parent
5575f2bbf3
commit
40e842ac3c
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user