From 1f0907ceaf8d6550c103ae8222fe16b7fadde43e Mon Sep 17 00:00:00 2001 From: "Gal@Shefet" Date: Tue, 27 Sep 2022 06:32:00 -0400 Subject: [PATCH] Fixed omp prompt Fixed: .envrc shows up when `direnv` does not exists --- _home/private_dot_poshtheme.omp.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_home/private_dot_poshtheme.omp.json b/_home/private_dot_poshtheme.omp.json index 89d46a7..ddcd414 100644 --- a/_home/private_dot_poshtheme.omp.json +++ b/_home/private_dot_poshtheme.omp.json @@ -81,9 +81,9 @@ "style": "powerline", "properties": { "shell": "bash", - "command": "type -t direnv *>/dev/null && { direnv status *>&1 || true; } | grep \"Found RC allowed\"; true" + "command": "type -t direnv 2>/dev/null && { direnv status 2>&1 || true; } | grep \"Found RC allowed\"; true" }, - "template": "." + "template": "{{ if .Output }}.{{ end }}" }, { "type": "command", @@ -100,9 +100,9 @@ "trailing_diamond": "▓", "properties": { "shell": "bash", - "command": "type -t direnv *>/dev/null && { direnv status *>&1 || true; } | grep \"Found RC allowed\"; true" + "command": "type -t direnv 2>/dev/null && { direnv status 2>&1 || true; } | grep \"Found RC allowed\"; true" }, - "template": "envrc" + "template": "{{ if .Output }}envrc{{ end }}" } ] },