7 ms·
The following goes a long way: setopt PROMPT_SUBST HISTFILE=~/.zsh_history HISTSIZE=100000 SAVEHIST=100000 PROMPT='%B%(?..%F{red}%?%f )%F{b
by enw 3y ago
The following goes a long way:
setopt PROMPT_SUBST
HISTFILE=~/.zsh_history
HISTSIZE=100000
SAVEHIST=100000
PROMPT='%B%(?..%F{red}%?%f )%F{blue}%~ %F{green}%#%f%b '
RPROMPT='%B%F{red}$(git branch --show-current 2> /dev/null)%f%b'
And if you want autosuggestions:
brew install zsh-autosuggestions
Then add the following to your ~/.zshrc:
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
- Brajeshwar 3y agoHey, I must have copied something similar from somewhere but yes my first base setup of my shell is PROMPT='%{%F{red}%}%~ %{%F{yellow}%}% › %{%F{reset_color}%}%' Anything after (besides the path and the GPG setup) that is an add-on that I can remove and still function well. I've learned to live without Git info. But this is very personal and I have not been into active development for quite a while.