[GRASS-user] modify prompt
Hamish
hamish_b at yahoo.com
Fri Oct 24 21:02:33 EDT 2008
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
More information about the grass-user
mailing list