Replaced .bash_profile by .bashrc
This commit is contained in:
parent
7c4c504760
commit
77399deaf3
1 changed files with 3 additions and 3 deletions
|
@ -30,17 +30,17 @@ sudo mkdir -p /usr/local/sbin
|
||||||
sudo chown ${USER}:admin /usr/local/sbin
|
sudo chown ${USER}:admin /usr/local/sbin
|
||||||
```
|
```
|
||||||
|
|
||||||
### Step 2: source `/usr/local/sbin` folder
|
### Step 2: add `/usr/local/sbin` folder to `PATH` environment variable
|
||||||
|
|
||||||
Find which shell is configured using `echo $SHELL`.
|
Find which shell is configured using `echo $SHELL`.
|
||||||
|
|
||||||
#### Bash (/bin/bash)
|
#### Bash (/bin/bash)
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
cat << "EOF" >> ~/.bash_profile
|
cat << "EOF" >> ~/.bashrc
|
||||||
export PATH=$PATH:/usr/local/sbin
|
export PATH=$PATH:/usr/local/sbin
|
||||||
EOF
|
EOF
|
||||||
source ~/.bash_profile
|
source ~/.bashrc
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Z Shell (/bin/zsh)
|
#### Z Shell (/bin/zsh)
|
||||||
|
|
Loading…
Add table
Reference in a new issue