[GRASS-user] Unable to modify PS1 variable

Patton, Eric (NRCan/RNCan) eric.patton at canada.ca
Thu Feb 28 08:39:48 PST 2019


Thanks for that, Markus, that works.

~ Eric.

From: Markus Metz <markus.metz.giswork at gmail.com>
Sent: February 28, 2019 12:08
To: Patton, Eric (NRCan/RNCan) <eric.patton at canada.ca>
Cc: grass-user at lists.osgeo.org
Subject: Re: [GRASS-user] Unable to modify PS1 variable



On Thu, Feb 28, 2019 at 3:21 PM Patton, Eric (NRCan/RNCan) <eric.patton at canada.ca<mailto:eric.patton at canada.ca>> wrote:
>
> Hi, I am having trouble changing my PS1 bash prompt in Grass 7.7svn. I have PS1 set to “\W >” in ~/.grass.bashrc, but instead my prompt consistently prints
>
> “GRASS 7.7.svn ($LOCATION_NAME):\w > “  (with LOCATION_NAME and \W expanded to current Grass location and full directory path, respectively). The result is my prompt is eating almost the full width of my shell window.
>
> Just wondering what other resource files need to be changed?

You could directly hack the GRASS startup script grass77, there in the fn bash_startup() the line that defines PS1, around L1772.

HTH,

Markus M

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20190228/c2cbb1f5/attachment.html>


More information about the grass-user mailing list