diff --git a/themes/powerline-plain/README.md b/themes/powerline-plain/README.md index 049c12f1..0a8a75ad 100644 --- a/themes/powerline-plain/README.md +++ b/themes/powerline-plain/README.md @@ -85,5 +85,6 @@ You can configure various aspects of the prompt to use less whitespace. Supporte |POWERLINE_COMPACT_AFTER_LAST_SEGMENT | Removes the trailing space on the last segment |POWERLINE_COMPACT_PROMPT | Removes the space after the prompt character |POWERLINE_COMPACT | Enable all Compact settings (you can still override individual settings) +|POWERLINE_PROMPT_AFTER | Adds characters after the prompt The default value for all settings is `0` (disabled). Use `1` to enable. diff --git a/themes/powerline-plain/powerline-plain.base.bash b/themes/powerline-plain/powerline-plain.base.bash index 37b4ff50..ce91ef89 100644 --- a/themes/powerline-plain/powerline-plain.base.bash +++ b/themes/powerline-plain/powerline-plain.base.bash @@ -32,6 +32,7 @@ function __powerline_prompt_command { LEFT_PROMPT="" SEGMENTS_AT_LEFT=0 LAST_SEGMENT_COLOR="" + PROMPT_AFTER="${POWERLINE_PROMPT_AFTER}" _save-and-reload-history "${HISTORY_AUTOSAVE:-0}" @@ -51,7 +52,7 @@ function __powerline_prompt_command { LEFT_PROMPT+=" " fi - PS1="${LEFT_PROMPT}" + PS1="${LEFT_PROMPT}${PROMPT_AFTER}" ## cleanup ## unset LAST_SEGMENT_COLOR \ diff --git a/themes/powerline-plain/powerline-plain.theme.bash b/themes/powerline-plain/powerline-plain.theme.bash index 942c411c..709fe341 100644 --- a/themes/powerline-plain/powerline-plain.theme.bash +++ b/themes/powerline-plain/powerline-plain.theme.bash @@ -12,6 +12,7 @@ POWERLINE_COMPACT_AFTER_SEPARATOR=${POWERLINE_COMPACT_AFTER_SEPARATOR:=${POWERLI POWERLINE_COMPACT_BEFOR_FIRST_SEGMENT=${POWERLINE_COMPACT_BEFORE_FIRST_SEGMENT:=${POWERLINE_COMPACT}} POWERLINE_COMPACT_AFTER_LAST_SEGMENT=${POWERLINE_COMPACT_AFTER_LAST_SEGMENT:=${POWERLINE_COMPACT}} POWERLINE_COMPACT_PROMPT=${POWERLINE_COMPACT_PROMPT:=${POWERLINE_COMPACT}} +POWERLINE_PROMPT_AFTER="${POWERLINE_PROMPT_AFTER:-''}" PYTHON_VENV_CHAR=${POWERLINE_PYTHON_VENV_CHAR:="ⓔ "} CONDA_PYTHON_VENV_CHAR=${POWERLINE_CONDA_PYTHON_VENV_CHAR:="ⓔ "}