You are not logged in.

#1 2016-07-06 14:06:12

Triver
Member
Registered: 2009-03-29
Posts: 71

[SOLVED] Unable to customize grml-zsh-config

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 $PROMPT

also 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

#2 2016-07-07 04:40:57

nick2k
Member
Registered: 2016-03-22
Posts: 2

Re: [SOLVED] Unable to customize grml-zsh-config

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

#3 2016-07-07 10:50:22

Triver
Member
Registered: 2009-03-29
Posts: 71

Re: [SOLVED] Unable to customize grml-zsh-config

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 smile

Last edited by Triver (2016-07-07 11:04:33)

Offline

Board footer

Powered by FluxBB