Customize Terminal Colors

I use iTerm2+zsh+oh-my-zsh. Recently I wished to change the dark theme to a ligher one.

The command I ended up using: PROMPT='%{$fg[green]%}%~%{$fg_bold[blue]%}$(git_prompt_info)%{$reset_color%} '

Few super useful links that I came across

  • That is, to add
      autoload -U colors && colors
    PS1="%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%~ %{$reset_color%}%% "

    in .zshrc (though I just did it on terminal to test)

  • To change the prompt:
  • How to get the prompt properly: (though I did not use this)
Written on January 13, 2019