Contents
How do I add color to my zsh?
To change the Theme, simply change the ZSH_THEME value in ~/. zshrc file from robbyrussell to Avit. Run the following command to update the config. Open ITerm2 > Preferences > Profiles > Colors and change the background black color to use 20% gray as shown below.
How do I know if I am using bash or Zsh?
Update your Terminal preferences to open the shell with the command /bin/bash , as shown in the screenshot above. Quit and restart Terminal. You should see “hello from bash”, but if you run echo $SHELL , you will see /bin/zsh .
How can I change the color of my prompt in zsh?
To get a prompt with the color depending on the last command’s exit status, you could use this: Just add this line to your ~/.zshrc. The documentation lists possible placeholders. To complement all of the above answers another convenient trick is to place the coloured prompt settings into a zsh function.
How to disable the blue color in zshrc?
If you want to disable the blue color and restore the default white color, just uncomment the line “DISABLE_LS_COLORS =” true “in your .zshrc file Thanks for contributing an answer to Super User!
How to install Oh my Zsh on non root account?
It works for the non-root account. First install zsh or some shell with say oh-my-zsh as a normal user. If you have normally setup the zsh shell & oh-my-zhs framework, then don’t just sudo su into root & type chsh -s $ (which zsh) $ (whoami) to change shell & framework
How can I configure the color of’ls’directory under zsh?
Google for fancy pre-configured dircolors files (such as this https://github.com/seebi/dircolors-solarized (I’ve got no relation to this)). Once done, you’ll need dircolors to turn that into a proper LS_COLORS. Note that dircolors outputs in bash and csh formats, for zsh you should use the bash -formatted output.