[GRASS-git] [OSGeo/grass] 158b74: libinit: shorten GRASS prompt

Markus Metz noreply at github.com
Thu May 23 23:25:56 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass
  Commit: 158b74b76bf80603b10d81a5ac7522c18e2f8f77
      https://github.com/OSGeo/grass/commit/158b74b76bf80603b10d81a5ac7522c18e2f8f77
  Author: Markus Metz <markus.metz.giswork at gmail.com>
  Date:   2019-05-22 (Wed, 22 May 2019)

  Changed paths:
    M lib/init/grass.py

  Log Message:
  -----------
  libinit: shorten GRASS prompt

The GRASS prompt currently shows the full path, e.g.

GRASS 7.7.svn (nc_spm_08):/media/storage/software/GRASS/development/vector/v.in.ogr/gpkg_extents >

while the bash prompt in the same directory shows e.g.
[metz at mylaptop gpkg_extents]$

which I prefer because it does not fill the CLI prompt, which might currently fold into two lines. I would like to change the GRASS prompt to e.g.

GRASS 7.7.svn (nc_spm_08):gpkg_extents >


  Commit: a9d72363055f7db9d3ec29ee99b0fd207b71a8d0
      https://github.com/OSGeo/grass/commit/a9d72363055f7db9d3ec29ee99b0fd207b71a8d0
  Author: Markus Metz <33666869+metzm at users.noreply.github.com>
  Date:   2019-05-24 (Fri, 24 May 2019)

  Changed paths:
    M lib/init/grass.py

  Log Message:
  -----------
  Merge pull request #17 from metzm/grass_prompt

libinit: shorten GRASS prompt


Compare: https://github.com/OSGeo/grass/compare/14ac3a763cf3...a9d72363055f


More information about the grass-commit mailing list