Fix eriner theme errors when git-info not enabled
as it was incorrectly testing for the `${+functions[git-info]}`. Closes #142
This commit is contained in:
parent
eee6e911d2
commit
597d611d7b
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@
|
||||||
# jobs are running in this shell will all be displayed automatically when
|
# jobs are running in this shell will all be displayed automatically when
|
||||||
# appropriate.
|
# appropriate.
|
||||||
#
|
#
|
||||||
# Uses the 'git-info' Zim module.
|
# Requires the `git-info` zmodule to be included in the .zimrc file.
|
||||||
|
|
||||||
### Segment drawing
|
### Segment drawing
|
||||||
# Utility functions to make it easy and re-usable to draw segmented prompts.
|
# Utility functions to make it easy and re-usable to draw segmented prompts.
|
||||||
|
@ -90,7 +90,7 @@ prompt_eriner_main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt_eriner_precmd() {
|
prompt_eriner_precmd() {
|
||||||
[[ ${+functions[git-info]} ]] && git-info
|
(( ${+functions[git-info]} )) && git-info
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt_eriner_setup() {
|
prompt_eriner_setup() {
|
||||||
|
|
Loading…
Reference in a new issue