Merge pull request #1580 from matthewadams/powerline-plain-prompt-after
add powerline-plain config for prompt after charspull/1589/head
commit
d30483053f
|
|
@ -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_AFTER_LAST_SEGMENT | Removes the trailing space on the last segment
|
||||||
|POWERLINE_COMPACT_PROMPT | Removes the space after the prompt character
|
|POWERLINE_COMPACT_PROMPT | Removes the space after the prompt character
|
||||||
|POWERLINE_COMPACT | Enable all Compact settings (you can still override individual settings)
|
|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.
|
The default value for all settings is `0` (disabled). Use `1` to enable.
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ function __powerline_prompt_command {
|
||||||
LEFT_PROMPT=""
|
LEFT_PROMPT=""
|
||||||
SEGMENTS_AT_LEFT=0
|
SEGMENTS_AT_LEFT=0
|
||||||
LAST_SEGMENT_COLOR=""
|
LAST_SEGMENT_COLOR=""
|
||||||
|
PROMPT_AFTER="${POWERLINE_PROMPT_AFTER}"
|
||||||
|
|
||||||
_save-and-reload-history "${HISTORY_AUTOSAVE:-0}"
|
_save-and-reload-history "${HISTORY_AUTOSAVE:-0}"
|
||||||
|
|
||||||
|
|
@ -51,7 +52,7 @@ function __powerline_prompt_command {
|
||||||
LEFT_PROMPT+=" "
|
LEFT_PROMPT+=" "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PS1="${LEFT_PROMPT}"
|
PS1="${LEFT_PROMPT}${PROMPT_AFTER}"
|
||||||
|
|
||||||
## cleanup ##
|
## cleanup ##
|
||||||
unset LAST_SEGMENT_COLOR \
|
unset LAST_SEGMENT_COLOR \
|
||||||
|
|
|
||||||
|
|
@ -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_BEFOR_FIRST_SEGMENT=${POWERLINE_COMPACT_BEFORE_FIRST_SEGMENT:=${POWERLINE_COMPACT}}
|
||||||
POWERLINE_COMPACT_AFTER_LAST_SEGMENT=${POWERLINE_COMPACT_AFTER_LAST_SEGMENT:=${POWERLINE_COMPACT}}
|
POWERLINE_COMPACT_AFTER_LAST_SEGMENT=${POWERLINE_COMPACT_AFTER_LAST_SEGMENT:=${POWERLINE_COMPACT}}
|
||||||
POWERLINE_COMPACT_PROMPT=${POWERLINE_COMPACT_PROMPT:=${POWERLINE_COMPACT}}
|
POWERLINE_COMPACT_PROMPT=${POWERLINE_COMPACT_PROMPT:=${POWERLINE_COMPACT}}
|
||||||
|
POWERLINE_PROMPT_AFTER="${POWERLINE_PROMPT_AFTER:-''}"
|
||||||
|
|
||||||
PYTHON_VENV_CHAR=${POWERLINE_PYTHON_VENV_CHAR:="ⓔ "}
|
PYTHON_VENV_CHAR=${POWERLINE_PYTHON_VENV_CHAR:="ⓔ "}
|
||||||
CONDA_PYTHON_VENV_CHAR=${POWERLINE_CONDA_PYTHON_VENV_CHAR:="ⓔ "}
|
CONDA_PYTHON_VENV_CHAR=${POWERLINE_CONDA_PYTHON_VENV_CHAR:="ⓔ "}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue