[GRASS-dev] Custom GRASS command line prompt

Nikos Alexandris nik at nikosalexandris.net
Wed Dec 17 00:38:56 PST 2014


Huidae Cho wrote:

> Mine looks like this (bash shell):

> grass_ps(){
>         echo "G `g.gisenv LOCATION_NAME`/`g.gisenv MAPSET`"
> }
> export PS1="\[\033]0;\$(grass_ps) \w\007\]\$(grass_ps) \w> "

> The prompt gets updated dynamically since grass_ps() is called every 
> time
> you hit enter.

Oh, this makes life easier :-)



More information about the grass-dev mailing list