plugins: Add disable callback for gitstatusd
parent
bda85c3679
commit
1143bb8ddf
|
|
@ -1,6 +1,15 @@
|
||||||
cite about-plugin
|
cite about-plugin
|
||||||
about-plugin 'speeds up your life by using gitstatusd for git status calculations. install from https://github.com/romkatv/gitstatus'
|
about-plugin 'speeds up your life by using gitstatusd for git status calculations. install from https://github.com/romkatv/gitstatus'
|
||||||
|
|
||||||
|
|
||||||
|
function gitstatusd_on_disable() {
|
||||||
|
about 'Destructor of gitstatusd plugin'
|
||||||
|
group 'gitstatusd'
|
||||||
|
|
||||||
|
unset SCM_GIT_USE_GITSTATUSD
|
||||||
|
gitstatus_stop
|
||||||
|
}
|
||||||
|
|
||||||
[[ "$SCM_CHECK" == "true" ]] || return # No scm-check
|
[[ "$SCM_CHECK" == "true" ]] || return # No scm-check
|
||||||
|
|
||||||
[[ $- == *i* ]] || return # non-interactive shell
|
[[ $- == *i* ]] || return # non-interactive shell
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue