Created by: alanhoyle
This should detect container status for shells running in Singularity, Docker, LXC and Podman containers.
Singularity is detected by the existence of shell variables that singularity creates inside containers. Note: it appears that Singularity clears the PROMPT_COMMAND by default, so updates to the shell prompt are broken.
Podman is detected by the existence of a file as documented at https://github.com/containers/libpod/blob/master/docs/podman-run.1.md
Docker and LXC are detected by checking for the existence of a file in the /proc virtual hierarchy, and grepping that file for their names.
Note that it also fixes a couple of minor, unrelated things that could be pulled out into a separate pull:
E.g. corrected spelling of "truncated" in
liquidprompt and putting the
POWERLINE_DIRSTACK_COLOR line in the correct alphabetical spot in
Also, the changes in title/subtitle notations in
docs/config.rst were done by the Emacs ReST mode, which I believe would know the format far better than me.