[GRASS-user] modify prompt

Hi,

What variable controls the shell prompt for GRASS 6.4 (SVN)? I cannot
find it in the docs. When I need to work directly from the prompt and
deep inside a tree, it becomes very hard to read because it includes the
full path. Thanks in advance.

Cheers,

--
Seb

Sebastian wrote:

What variable controls the shell prompt for GRASS 6.4 (SVN)? I cannot
find it in the docs. When I need to work directly from the prompt and
deep inside a tree, it becomes very hard to read because it includes the
full path.

usually "PS1"

"echo $PS1"

I have this in my .grass.bashrc:

export PS1='G64:\W > '

\w gives the full path, \W gives just the top level.

there is also $PROMPT_COMMAND which lets you know that a MASK is in
place, etc. It points to $GISBASE/etc/prompt.sh

Hamish