Fixed omp prompt
Fixed: .envrc shows up when `direnv` does not exists
This commit is contained in:
parent
d6687d8fa4
commit
f3323b159b
|
@ -1,7 +1,7 @@
|
||||||
if [[ -n "$(which-command chezmoi)" ]]; then
|
if [[ -n "$(which-command chezmoi)" ]]; then
|
||||||
export CHEZMOIROOT="$(chezmoi source-path)"
|
export CHEZMOIROOT="$(chezmoi source-path)"
|
||||||
export CZ="$CHEZMOIROOT/_home"
|
export CZ="$CHEZMOIROOT"
|
||||||
export CZ_X="$CHEZMOIROOT/_externals"
|
export CZ_X="$(readlink -f $CHEZMOIROOT/../_externals)"
|
||||||
|
|
||||||
alias czcd="cd $CZ"
|
alias czcd="cd $CZ"
|
||||||
alias czxcd="cd $CZ_X"
|
alias czxcd="cd $CZ_X"
|
||||||
|
|
|
@ -81,9 +81,9 @@
|
||||||
"style": "powerline",
|
"style": "powerline",
|
||||||
"properties": {
|
"properties": {
|
||||||
"shell": "bash",
|
"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",
|
"type": "command",
|
||||||
|
@ -100,9 +100,9 @@
|
||||||
"trailing_diamond": "▓",
|
"trailing_diamond": "▓",
|
||||||
"properties": {
|
"properties": {
|
||||||
"shell": "bash",
|
"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,
|
"invert_powerline": true,
|
||||||
"powerline_symbol": "",
|
"powerline_symbol": "",
|
||||||
"properties": {
|
"properties": {
|
||||||
"always_enabled": true
|
"always_enabled": false
|
||||||
},
|
},
|
||||||
"style": "powerline",
|
"style": "powerline",
|
||||||
"template": "{{ if gt .Code 0 }}{{ .Meaning }}{{ else }}✔{{ end }} ",
|
"template": "{{ if gt .Code 0 }}{{ .Meaning }}{{ else }}✔{{ end }} ",
|
||||||
|
@ -333,7 +333,7 @@
|
||||||
"invert_powerline": true,
|
"invert_powerline": true,
|
||||||
"style": "powerline",
|
"style": "powerline",
|
||||||
"powerline_symbol": "",
|
"powerline_symbol": "",
|
||||||
"template": "sw{{ printf \"%.0f%%\" .SwapPercentUsed }}",
|
"template": " {{ printf \"%.0f%%\" .SwapPercentUsed }}",
|
||||||
"type": "sysinfo"
|
"type": "sysinfo"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue