You are not logged in.
Hi, I'm using zsh as my shell in combination with the grml-zsh-config package.
Now I would like to slightly adjust the format of the prompt to my needs, (for simplicities sake I'd just like it to display "> " for now), however nothing seems to work so far.
Adding
PROMPT="> "in either ~/.zshrc or ~/.zshrc.local (as suggested by the grml-zsh documentation) has no effect (even after relaunching the shell) and
echo $PROMPTalso stays at the same value.
So what do I need to do in order to customize the prompt to my needs (without interfering with eventual grml-zsh-config package updates)?
Last edited by Triver (2016-07-07 10:50:35)
Offline
from GRML's manual
A note to people who like customisation: If you are not using a prompt theme for your customisation, but you're either statically setting $PS1 (or $PROMPT) or you're constructing one of those variables in zsh's \`precmd()' function, make sure you are turning the zsh's prompt theme system off before doing so. A correct example customisation could look like this:
# Turn the prompt system off: prompt off # Customise the prompt yourself: PS1='%~ %# '
Offline
Thanks, that makes it work.
I wouldn't have expected that something needs to be turned off for this but I guess you can never be too thorough when reading the manual ![]()
Last edited by Triver (2016-07-07 11:04:33)
Offline