Skip to content

Commit

Permalink
Address some comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
likan999 committed Nov 29, 2020
1 parent 8ce9d8d commit 9fb268c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion themes/gitline/powerline.base.bash
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function __powerline_aws_profile_prompt {
function __powerline_in_toolbox_prompt {
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}"
fi
}
Expand Down
2 changes: 1 addition & 1 deletion themes/powerline-multiline/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
* `cwd` - Current working directory including full folder hierarchy (c.f. `wd`)
* `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
* `k8s_context` - Show current kubernetes context
* `last_status` - Exit status of last run command
Expand Down
2 changes: 1 addition & 1 deletion themes/powerline-naked/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
* `cwd` - Current working directory including full folder hierarchy (c.f. `wd`)
* `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
* `k8s_context` - Show current kubernetes context
* `last_status` - Exit status of last run command
Expand Down
2 changes: 1 addition & 1 deletion themes/powerline-plain/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
* `cwd` - Current working directory including full folder hierarchy (c.f. `wd`)
* `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
* `k8s_context` - Show current kubernetes context
* `last_status` - Exit status of last run command
Expand Down
2 changes: 1 addition & 1 deletion themes/powerline/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
* `cwd` - Current working directory including full folder hierarchy (c.f. `wd`)
* `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
* `k8s_context` - Show current kubernetes context
* `last_status` - Exit status of last run command
Expand Down
2 changes: 1 addition & 1 deletion themes/powerline/powerline.base.bash
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function __powerline_aws_profile_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}"
fi
}
Expand Down

0 comments on commit 9fb268c

Please sign in to comment.