Replaced .bash_profile by .bashrc

This commit is contained in:
Sun Knudsen 2021-04-17 16:33:01 -04:00
parent 7c4c504760
commit 77399deaf3
No known key found for this signature in database
GPG Key ID: 1FA767862BBD1305

View File

@ -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)