summaryrefslogtreecommitdiff
path: root/pack/ache/start/updatePlugin.py
blob: 21f9d7e8f66feea11005772f821d72ef5f984acf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/env python

import subprocess
from pathlib import Path


for plugin in Path('.').iterdir():
    if (plugin / ".git").exists():
        subprocess.run(["git", "pull"], cwd=str(plugin))

        # The option --init is necessery if there is new submodule
        subprocess.run(["git", "submodule", "update", "--init", "--recursive"], cwd=str(plugin))

# Post install script

subprocess.run(["make", "hexokinase"], cwd="vim-hexokinase")
print('Post install Hexakinase done ✔️')

installCmd = f"+:CocUpdate"
subprocess.run(["nvim", installCmd])
print('Coc plugins update done ✔️')

print("Please check health 🏥")
subprocess.run(["nvim", "+:checkhealth"])