Add in_toolbox prompt to powerline themes
[Toolbox](https://github.com/containers/toolbox) is an containerized development environment. This commit adds a promot to powerline when it is running inside a toolbox.
This commit is contained in:
@@ -169,6 +169,12 @@ function __powerline_aws_profile_prompt() {
|
||||
fi
|
||||
}
|
||||
|
||||
function __powerline_in_toolbox_prompt() {
|
||||
if [[ -e /run/.toolboxenv ]]; then
|
||||
echo "${IN_TOOLBOX_THEME_PROMPT_TEXT}|${IN_TOOLBOX_THEME_PROMPT_COLOR}"
|
||||
fi
|
||||
}
|
||||
|
||||
function __powerline_shlvl_prompt() {
|
||||
if [[ "${SHLVL}" -gt 1 ]]; then
|
||||
local prompt="${SHLVL_THEME_PROMPT_CHAR}"
|
||||
|
||||
Reference in New Issue
Block a user