Fixed omp prompt

Fixed: .envrc shows up when `direnv` does not exists
This commit is contained in:
Gal@Shefet 2022-09-27 06:32:00 -04:00
parent d6687d8fa4
commit 2b89002084
1 changed files with 4 additions and 4 deletions

View File

@ -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 }}"
}
]
},