Re: [GRASS-user] Unable to modify PS1 variable

2019-02-28 Thread Patton, Eric (NRCan/RNCan)
Micha, I don't have a bashrc file in ~.grass7. And copying ~/.grass.bashrc to 
~/.grass7/bashrc and restarting Grass doesn't change anything (PS1 remains the 
same). It seems the grass77 startup is clobbering all other places where $PS1 
is set.

~ Eric.

From: Micha Silver 
Sent: February 28, 2019 11:49
To: Patton, Eric (NRCan/RNCan) ; 
grass-user@lists.osgeo.org
Subject: Re: [GRASS-user] Unable to modify PS1 variable


On 28/02/2019 16:10, Patton, Eric (NRCan/RNCan) 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?

On my system (Debian, GRASS 7.6) it's ~/.grass7/bashrc



Thanks,

~ Eric.



___

grass-user mailing list

grass-user@lists.osgeo.org<mailto:grass-user@lists.osgeo.org>

https://lists.osgeo.org/mailman/listinfo/grass-user

--

Micha Silver

Ben Gurion Univ.

Sde Boker, Remote Sensing Lab

cell: +972-523-665918
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Unable to modify PS1 variable

2019-02-28 Thread Patton, Eric (NRCan/RNCan)
Thanks for that, Markus, that works.

~ Eric.

From: Markus Metz 
Sent: February 28, 2019 12:08
To: Patton, Eric (NRCan/RNCan) 
Cc: grass-user@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) 
mailto:eric.pat...@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

___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Unable to modify PS1 variable

2019-02-28 Thread Markus Metz
On Thu, Feb 28, 2019 at 3:21 PM Patton, Eric (NRCan/RNCan) <
eric.pat...@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
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Unable to modify PS1 variable

2019-02-28 Thread Patton, Eric (NRCan/RNCan)
On Thu, Feb 28, 2019 at 3:20 PM Patton, Eric (NRCan/RNCan) 
 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 to be sure: what is $SHELL set to? What is the output of:
>
>
>echo $SHELL
>
> and
>
>ls -la $(which $SHELL)

Markus, 

Here is the output:

echo $SHELL
/bin/bash

ls -al $(which $SHELL)
-rwxr-xr-x 1 root root 1037440 May 26  2017 /bin/bash

~ Eric.

___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Unable to modify PS1 variable

2019-02-28 Thread Micha Silver

  
  

On 28/02/2019 16:10, Patton, Eric
  (NRCan/RNCan) 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?
  



On my system (Debian, GRASS 7.6) it's ~/.grass7/bashrc



  

 
 
Thanks,
 
~ Eric.
  
  
  
  ___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

-- 
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918
  

___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Unable to modify PS1 variable

2019-02-28 Thread Markus Neteler
On Thu, Feb 28, 2019 at 3:20 PM Patton, Eric (NRCan/RNCan)
 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 to be sure: what is $SHELL set to? What is the output of:

echo $SHELL

  and

ls -la $(which $SHELL)

?


Markus
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

[GRASS-user] Unable to modify PS1 variable

2019-02-28 Thread Patton, Eric (NRCan/RNCan)
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?


Thanks,

~ Eric.
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user