plugins: Add disable callback for gitstatusd

pull/1622/head
Noah Gorny 2020-06-20 14:37:39 +03:00
parent bda85c3679
commit 1143bb8ddf
1 changed files with 9 additions and 0 deletions

View File

@ -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