Change Shell
Table of contents
Check which shell
- Run
echo $SHELL
, to check which shell - SHELL to be capitalised
Outputs: /bin/zsh
Or: /bin/bash
Customised prompt
- Add below to:
.bashrc
or.zshrc
- More
bash prompt
generators, you can searchbash prompt generator
, there are plenty services.
export PROMPT="%F{green} %m @ %~ 🤣 ▶ %f"
Change path from bash to zsh
- Run
touch .zshrc
to create a.zshrc
file to the root folder - Add path for
.zshrc
- Reload the file, run
source .zshrc
compaudit
, after running the command, seeingthere are insecure directories: /usr/local/share/zsh
, run below 2 commands:
sudo chown -R root:group /usr/local/share/zsh/
sudo chmod -R 755 /usr/local/share/zsh/
Run source .zshrc
again. Passes