I use on-my-zsh, how to change the path color?
here is my config file content in the following
export ZSH=$HOME/.oh-my-zsh
ZSH_THEME="alanpeabody"
plugins=(git)
source $ZSH/oh-my-zsh.sh
I use on-my-zsh, how to change the path color?
here is my config file content in the following
export ZSH=$HOME/.oh-my-zsh
ZSH_THEME="alanpeabody"
plugins=(git)
source $ZSH/oh-my-zsh.sh
First option: Create a custom theme based on your current theme and change the color of the relevant field
cp ~/.oh-my-zsh/themes/alanpeabody.zsh-theme ~/.oh-my-zsh/themes/alanpeabody-custom.zsh-theme
Change zsh terminal theme to your custom theme - edit ~/.zshrc and change ZSH_THEME="alanpeabody" to
ZSH_THEME="alanpeabody-custom"
Edit ~/.oh-my-zsh/themes/alanpeabody-custom.zsh-theme in order to change the color of the current working directory value, just change the blue value to one of the available color names: black, red, green, yellow, blue, magenta, cyan, white of the line below
local pwd='%{$fg[blue]%}%~%{$reset_color%}'
Second option: Copy ~/.oh-my-zsh/themes/alanpeabody.zsh-theme content to the bottom of your ~/.zshrc and edit the line mention above
Changes takes effect when opening a new terminal session or by running
source ~/.zshrc