aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorChristian Rebischke <Chris.Rebischke@posteo.de>2017-04-23 16:39:57 +0300
committerChristian Rebischke <Chris.Rebischke@posteo.de>2017-04-23 16:39:57 +0300
commitdc2b5a833ff55cadb94cc7fa539884d02630ccdc (patch)
tree3e414580ee5bc428603a43d17450a6215ebbd7b6 /powerlevel9k.zsh-theme
parent95be97ea5f1df05427d9bca6e177ccbc61eb917b (diff)
[detect-virt] quickfix for unnecessary information in prompt
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme7
1 files changed, 3 insertions, 4 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index ce38ea7a..3eba616c 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -768,20 +768,19 @@ prompt_history() {
# Detection for virtualization (systemd based systems only)
prompt_detect_virt() {
- if ! command -v systemd-detect-virt;then
+ if ! command -v systemd-detect-virt > /dev/null; then
return
fi
local virt=$(systemd-detect-virt)
- local color="yellow"
if [[ "$virt" == "none" ]]; then
if [[ "$(ls -di / | grep -o 2)" != "2" ]]; then
virt="chroot"
- "$1_prompt_segment" "$0" "$2" "$color" "$DEFAULT_COLOR" "$virt"
+ "$1_prompt_segment" "$0" "$2" "yellow" "$DEFAULT_COLOR" "$virt"
else
;
fi
else
- "$1_prompt_segment" "$0" "$2" "$color" "$DEFAULT_COLOR" "$virt"
+ "$1_prompt_segment" "$0" "$2" "yellow" "$DEFAULT_COLOR" "$virt"
fi
}