Address some comments.
This commit is contained in:
@@ -65,7 +65,7 @@ IN_VIM_THEME_PROMPT_COLOR=245
|
|||||||
IN_VIM_THEME_PROMPT_TEXT="vim"
|
IN_VIM_THEME_PROMPT_TEXT="vim"
|
||||||
|
|
||||||
IN_TOOLBOX_THEME_PROMPT_COLOR=125
|
IN_TOOLBOX_THEME_PROMPT_COLOR=125
|
||||||
IN_TOOLBOX_THEME_PROMPT_TEXT=" "
|
IN_TOOLBOX_THEME_PROMPT_TEXT="⬢ "
|
||||||
|
|
||||||
|
|
||||||
safe_append_prompt_command __powerline_prompt_command
|
safe_append_prompt_command __powerline_prompt_command
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ function __powerline_aws_profile_prompt {
|
|||||||
function __powerline_in_toolbox_prompt {
|
function __powerline_in_toolbox_prompt {
|
||||||
local fg_color=206
|
local fg_color=206
|
||||||
|
|
||||||
if [[ -e /run/.toolboxenv ]]; then
|
if [ -f /run/.containerenv ] && [ -f /run/.toolboxenv ]; then
|
||||||
echo "${IN_TOOLBOX_THEME_PROMPT_TEXT}|${IN_TOOLBOX_THEME_PROMPT_COLOR}|${fg_color}"
|
echo "${IN_TOOLBOX_THEME_PROMPT_TEXT}|${IN_TOOLBOX_THEME_PROMPT_COLOR}|${fg_color}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ The contents of both prompt sides can be "reordered", all the "segments" (every
|
|||||||
* `clock` - Current time in `HH:MM:SS` format
|
* `clock` - Current time in `HH:MM:SS` format
|
||||||
* `cwd` - Current working directory including full folder hierarchy (c.f. `wd`)
|
* `cwd` - Current working directory including full folder hierarchy (c.f. `wd`)
|
||||||
* `hostname` - Host name of machine
|
* `hostname` - Host name of machine
|
||||||
* `in_toolbox` - Show identifier if running inside a toolbox
|
* `in_toolbox` - Show identifier if running inside a [toolbox](https://github.com/containers/toolbox)
|
||||||
* `in_vim` - Show identifier if running in `:terminal` from vim
|
* `in_vim` - Show identifier if running in `:terminal` from vim
|
||||||
* `k8s_context` - Show current kubernetes context
|
* `k8s_context` - Show current kubernetes context
|
||||||
* `last_status` - Exit status of last run command
|
* `last_status` - Exit status of last run command
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ IN_VIM_THEME_PROMPT_COLOR=${POWERLINE_IN_VIM_COLOR:=245}
|
|||||||
IN_VIM_THEME_PROMPT_TEXT=${POWERLINE_IN_VIM_TEXT:="vim"}
|
IN_VIM_THEME_PROMPT_TEXT=${POWERLINE_IN_VIM_TEXT:="vim"}
|
||||||
|
|
||||||
IN_TOOLBOX_THEME_PROMPT_COLOR=${POWERLINE_IN_TOOLBOX_COLOR:=125}
|
IN_TOOLBOX_THEME_PROMPT_COLOR=${POWERLINE_IN_TOOLBOX_COLOR:=125}
|
||||||
IN_TOOLBOX_THEME_PROMPT_TEXT=${POWERLINE_IN_TOOLBOX_TEXT:="❲T❳ "}
|
IN_TOOLBOX_THEME_PROMPT_TEXT=${POWERLINE_IN_TOOLBOX_TEXT:="⬢ "}
|
||||||
|
|
||||||
HOST_THEME_PROMPT_COLOR=${POWERLINE_HOST_COLOR:=0}
|
HOST_THEME_PROMPT_COLOR=${POWERLINE_HOST_COLOR:=0}
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ The contents of the prompt can be "reordered", all the "segments" (every piece o
|
|||||||
* `clock` - Current time in `HH:MM:SS` format
|
* `clock` - Current time in `HH:MM:SS` format
|
||||||
* `cwd` - Current working directory including full folder hierarchy (c.f. `wd`)
|
* `cwd` - Current working directory including full folder hierarchy (c.f. `wd`)
|
||||||
* `hostname` - Host name of machine
|
* `hostname` - Host name of machine
|
||||||
* `in_toolbox` - Show identifier if running inside a toolbox
|
* `in_toolbox` - Show identifier if running inside a [toolbox](https://github.com/containers/toolbox)
|
||||||
* `in_vim` - Show identifier if running in `:terminal` from vim
|
* `in_vim` - Show identifier if running in `:terminal` from vim
|
||||||
* `k8s_context` - Show current kubernetes context
|
* `k8s_context` - Show current kubernetes context
|
||||||
* `last_status` - Exit status of last run command
|
* `last_status` - Exit status of last run command
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ IN_VIM_THEME_PROMPT_COLOR=${POWERLINE_IN_VIM_COLOR:=245}
|
|||||||
IN_VIM_THEME_PROMPT_TEXT=${POWERLINE_IN_VIM_TEXT:="vim"}
|
IN_VIM_THEME_PROMPT_TEXT=${POWERLINE_IN_VIM_TEXT:="vim"}
|
||||||
|
|
||||||
IN_TOOLBOX_THEME_PROMPT_COLOR=${POWERLINE_IN_TOOLBOX_COLOR:=125}
|
IN_TOOLBOX_THEME_PROMPT_COLOR=${POWERLINE_IN_TOOLBOX_COLOR:=125}
|
||||||
IN_TOOLBOX_THEME_PROMPT_TEXT=${POWERLINE_IN_TOOLBOX_TEXT:="❲T❳ "}
|
IN_TOOLBOX_THEME_PROMPT_TEXT=${POWERLINE_IN_TOOLBOX_TEXT:="⬢ "}
|
||||||
|
|
||||||
HOST_THEME_PROMPT_COLOR=${POWERLINE_HOST_COLOR:=254}
|
HOST_THEME_PROMPT_COLOR=${POWERLINE_HOST_COLOR:=254}
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ The contents of the prompt can be "reordered", all the "segments" (every piece o
|
|||||||
* `clock` - Current time in `HH:MM:SS` format
|
* `clock` - Current time in `HH:MM:SS` format
|
||||||
* `cwd` - Current working directory including full folder hierarchy (c.f. `wd`)
|
* `cwd` - Current working directory including full folder hierarchy (c.f. `wd`)
|
||||||
* `hostname` - Host name of machine
|
* `hostname` - Host name of machine
|
||||||
* `in_toolbox` - Show identifier if running inside a toolbox
|
* `in_toolbox` - Show identifier if running inside a [toolbox](https://github.com/containers/toolbox)
|
||||||
* `in_vim` - Show identifier if running in `:terminal` from vim
|
* `in_vim` - Show identifier if running in `:terminal` from vim
|
||||||
* `k8s_context` - Show current kubernetes context
|
* `k8s_context` - Show current kubernetes context
|
||||||
* `last_status` - Exit status of last run command
|
* `last_status` - Exit status of last run command
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ IN_VIM_THEME_PROMPT_COLOR=${POWERLINE_IN_VIM_COLOR:=245}
|
|||||||
IN_VIM_THEME_PROMPT_TEXT=${POWERLINE_IN_VIM_TEXT:="vim"}
|
IN_VIM_THEME_PROMPT_TEXT=${POWERLINE_IN_VIM_TEXT:="vim"}
|
||||||
|
|
||||||
IN_TOOLBOX_THEME_PROMPT_COLOR=${POWERLINE_IN_TOOLBOX_COLOR:=125}
|
IN_TOOLBOX_THEME_PROMPT_COLOR=${POWERLINE_IN_TOOLBOX_COLOR:=125}
|
||||||
IN_TOOLBOX_THEME_PROMPT_TEXT=${POWERLINE_IN_TOOLBOX_TEXT:="Ⓣ "}
|
IN_TOOLBOX_THEME_PROMPT_TEXT=${POWERLINE_IN_TOOLBOX_TEXT:="⬢ "}
|
||||||
|
|
||||||
HOST_THEME_PROMPT_COLOR=${POWERLINE_HOST_COLOR:=0}
|
HOST_THEME_PROMPT_COLOR=${POWERLINE_HOST_COLOR:=0}
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ The contents of the prompt can be "reordered", all the "segments" (every piece o
|
|||||||
* `clock` - Current time in `HH:MM:SS` format
|
* `clock` - Current time in `HH:MM:SS` format
|
||||||
* `cwd` - Current working directory including full folder hierarchy (c.f. `wd`)
|
* `cwd` - Current working directory including full folder hierarchy (c.f. `wd`)
|
||||||
* `hostname` - Host name of machine
|
* `hostname` - Host name of machine
|
||||||
* `in_toolbox` - Show identifier if running inside a toolbox
|
* `in_toolbox` - Show identifier if running inside a [toolbox](https://github.com/containers/toolbox)
|
||||||
* `in_vim` - Show identifier if running in `:terminal` from vim
|
* `in_vim` - Show identifier if running in `:terminal` from vim
|
||||||
* `k8s_context` - Show current kubernetes context
|
* `k8s_context` - Show current kubernetes context
|
||||||
* `last_status` - Exit status of last run command
|
* `last_status` - Exit status of last run command
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ function __powerline_aws_profile_prompt() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function __powerline_in_toolbox_prompt() {
|
function __powerline_in_toolbox_prompt() {
|
||||||
if [[ -e /run/.toolboxenv ]]; then
|
if [ -f /run/.containerenv ] && [ -f /run/.toolboxenv ]; then
|
||||||
echo "${IN_TOOLBOX_THEME_PROMPT_TEXT}|${IN_TOOLBOX_THEME_PROMPT_COLOR}"
|
echo "${IN_TOOLBOX_THEME_PROMPT_TEXT}|${IN_TOOLBOX_THEME_PROMPT_COLOR}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ IN_VIM_THEME_PROMPT_COLOR=${POWERLINE_IN_VIM_COLOR:=245}
|
|||||||
IN_VIM_THEME_PROMPT_TEXT=${POWERLINE_IN_VIM_TEXT:="vim"}
|
IN_VIM_THEME_PROMPT_TEXT=${POWERLINE_IN_VIM_TEXT:="vim"}
|
||||||
|
|
||||||
IN_TOOLBOX_THEME_PROMPT_COLOR=${POWERLINE_IN_TOOLBOX_COLOR:=125}
|
IN_TOOLBOX_THEME_PROMPT_COLOR=${POWERLINE_IN_TOOLBOX_COLOR:=125}
|
||||||
IN_TOOLBOX_THEME_PROMPT_TEXT=${POWERLINE_IN_TOOLBOX_TEXT:="❲T❳ "}
|
IN_TOOLBOX_THEME_PROMPT_TEXT=${POWERLINE_IN_TOOLBOX_TEXT:="⬢ "}
|
||||||
|
|
||||||
HOST_THEME_PROMPT_COLOR=${POWERLINE_HOST_COLOR:=0}
|
HOST_THEME_PROMPT_COLOR=${POWERLINE_HOST_COLOR:=0}
|
||||||
|
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ IN_VIM_THEME_PROMPT_COLOR=245
|
|||||||
IN_VIM_THEME_PROMPT_TEXT="vim"
|
IN_VIM_THEME_PROMPT_TEXT="vim"
|
||||||
|
|
||||||
IN_TOOLBOX_THEME_PROMPT_COLOR=125
|
IN_TOOLBOX_THEME_PROMPT_COLOR=125
|
||||||
IN_TOOLBOX_THEME_PROMPT_TEXT=" "
|
IN_TOOLBOX_THEME_PROMPT_TEXT="⬢ "
|
||||||
|
|
||||||
POWERLINE_PROMPT=${POWERLINE_PROMPT:="python_venv ruby user_info hostname cwd scm"}
|
POWERLINE_PROMPT=${POWERLINE_PROMPT:="python_venv ruby user_info hostname cwd scm"}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user