[GRASS-git] [OSGeo/grass] a96204: init: Update mapset and simplify shell prompts (#923)
Vaclav Petras
noreply at github.com
Wed Aug 26 19:11:42 PDT 2020
Branch: refs/heads/master
Home: https://github.com/OSGeo/grass
Commit: a96204ba150684878822527d2c1a87f05066e849
https://github.com/OSGeo/grass/commit/a96204ba150684878822527d2c1a87f05066e849
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2020-08-26 (Wed, 26 Aug 2020)
Changed paths:
M lib/init/grass.py
Log Message:
-----------
init: Update mapset and simplify shell prompts (#923)
* Updates mapset also for bash (already done for tcsh and zsh).
* Removes GRASS GIS version from the prompt (already visible in the welcome text).
* Removes w/W from PS1 in the default/fallback shell setup (not supported by POSIX or sh).
* Removes location (name) from PS1 in the default/fallback shell setup (making no assumptions on what is supported).
* Uses W instead of w (i.e., current directory name, not path) for Bash to make the prompt shorter.
* Adds /mapset (name) after the location (name) for Bash and removes quotes around it (saves two characters, possibly less cluttered).
* Remove obsolete and outdated LOCATION variable defined in shell (MAPSET_PATH already available as a replacement).
* Make prompts more similar to each other (e.g., no GIS anywhere anymore, just GRASS for prompt).
More information about the grass-commit
mailing list