Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

How to see what current prompt definition

I'm moving from bash to zsh and getting stuck on the prompt. My Manjaro defines it one way, Ubuntu another.

So I like, e.g. the prompt called "clint". But it's not exactly what I want. I can find more or less adequate resources that help me define my own prompt, but I don't know how this particular one is composed.

Where can I find its definition?
by

1 Answer

Kajalsi45d
zsh stores its prompt setups and defintions in /usr/share/zsh/functions/Prompts/
So if you want to take a look what prompt clint does behind the curtains, first find the right file.
$ ls /usr/share/zsh/functions/Prompts/clint
/usr/share/zsh/functions/Prompts/prompt_clint_setup


And open it in your favorite text editor.

Login / Signup to Answer the Question.