Various suggestions online seemed to fail. It seemed like the escape sequences for getting colored varied wildly, and none worked for me.
I followed the instructions here for loading one of the default prompts. eg :
autoload -U promptinit promptinit prompt -l prompt bigfadeThen, I typed
echo $PROMPTto see what the proper escape sequences were ( they didn't look like anything provided online ). e.g.:
%B%F{blue}█▓▒░%B%F{white}%K{blue}%n@%m%b%k%f%F{blue}%K{black}░▒▓█%b%f%k%F{blue}%K{black}█▓▒░%B%F{white}%K{black} %D{%a %b %d} %D{%I:%M:%S%P} %}%B%F{yellow}%K{black}/home/mrule>%b%f%kSo, apparantly %B gives you bold, %F{colorname} sets the foreground color, and %b and %f return these to defaults ? Anyway, this will give a blue prompt:
%B%F{blue}%~$ %b%f
No comments:
Post a Comment