Fixed omp prompt
Fixed: .envrc shows up when `direnv` does not exists
This commit is contained in:
parent
d6687d8fa4
commit
37397bf8ae
|
@ -1,7 +1,7 @@
|
|||
if [[ -n "$(which-command chezmoi)" ]]; then
|
||||
export CHEZMOIROOT="$(chezmoi source-path)"
|
||||
export CZ="$CHEZMOIROOT/_home"
|
||||
export CZ_X="$CHEZMOIROOT/_externals"
|
||||
export CZ="$CHEZMOIROOT"
|
||||
export CZ_X="$(readlink -f $CHEZMOIROOT/../_externals)"
|
||||
|
||||
alias czcd="cd $CZ"
|
||||
alias czxcd="cd $CZ_X"
|
||||
|
|
|
@ -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 }} ",
|
||||
|
|
Loading…
Reference in New Issue