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
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
|
@ -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
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user