Unverified Commit 486cf147 authored by Mark Vander Stel's avatar Mark Vander Stel
Browse files

Add missing Ruby VENV template section in docs

This was missed in the PR for the Ruby Virtualenv section.
The order in the docs for Terraform and Kubecontext was backwards from
the order in the code.
Moved parts of the PS1 building to different lines to make it easier to
read and add new sections.

Resolves #676
parent f0442e87
......@@ -187,10 +187,10 @@ default order if the user does not configure a different template.
The current Python (or Conda) virtual environment. See
:attr:`LP_ENABLE_VIRTUALENV`.
.. attribute:: LP_KUBECONTEXT
.. attribute:: LP_RUBY_VENV
The current Kubernetes context. See
:attr:`LP_ENABLE_KUBECONTEXT`.
The current Ruby virtual environment. See
:attr:`LP_ENABLE_RUBY_VENV`.
.. versionadded:: 2.1
......@@ -200,6 +200,13 @@ default order if the user does not configure a different template.
.. versionadded:: 2.1
.. attribute:: LP_KUBECONTEXT
The current Kubernetes context. See
:attr:`LP_ENABLE_KUBECONTEXT`.
.. versionadded:: 2.1
.. attribute:: LP_PROXY
A ↥ (:attr:`LP_MARK_PROXY`) if an HTTP proxy is in use. See
......
......@@ -2904,10 +2904,10 @@ _lp_default_theme_prompt_template() {
if [[ -z "${LP_PS1-}" ]]; then
# add title escape time, jobs, load and battery
PS1="${LP_PS1_PREFIX}${LP_TIME}${LP_BATT}${LP_LOAD}${LP_TEMP}${LP_JOBS}"
# add user, host and permissions colon
PS1+="${LP_BRACKET_OPEN}${LP_USER}${LP_HOST}${LP_PERM}"
# add user, host, permissions colon, working directory, and dirstack
PS1+="${LP_BRACKET_OPEN}${LP_USER}${LP_HOST}${LP_PERM}${LP_PWD}${LP_DIRSTACK}${LP_BRACKET_CLOSE}"
PS1+="${LP_PWD}${LP_DIRSTACK}${LP_BRACKET_CLOSE}${LP_SCLS}${LP_AWS_PROFILE}${LP_VENV}${LP_RUBY_VENV}${LP_TFSPACE}${LP_KUBECONTEXT}${LP_PROXY}"
PS1+="${LP_SCLS}${LP_AWS_PROFILE}${LP_VENV}${LP_RUBY_VENV}${LP_TFSPACE}${LP_KUBECONTEXT}${LP_PROXY}"
# Add VCS infos
# If root, the info has not been collected unless LP_ENABLE_VCS_ROOT
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment