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 f3323b159b
2 changed files with 8 additions and 8 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 }}"
}
]
},
@ -281,7 +281,7 @@
"invert_powerline": true,
"powerline_symbol": "",
"properties": {
"always_enabled": true
"always_enabled": false
},
"style": "powerline",
"template": "{{ if gt .Code 0 }}{{ .Meaning }}{{ else }}✔{{ end }} ",
@ -333,7 +333,7 @@
"invert_powerline": true,
"style": "powerline",
"powerline_symbol": "",
"template": "sw{{ printf \"%.0f%%\" .SwapPercentUsed }}",
"template": "   {{ printf \"%.0f%%\" .SwapPercentUsed }}",
"type": "sysinfo"
},
{