]> apps.delaporte.us Git - dotfiles.git/blob - invoke/nvim/tasks.py
cbfac551086e373739e4e053a7663f1a242c2559
[dotfiles.git] / invoke / nvim / tasks.py
1 from invoke import task
2 import os
3 import platform
4
5 # $env:INVOKE_RUN_SHELL='C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'
6
7 home = os.path.expanduser('~')
8
9 ps = r'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'
10 config_dir = f"{home}/AppData/Local/nvim"
11
12 if(platform.system() == 'Linux'):
13 ps = r'/usr/bin/pwsh'
14 config_dir = f"{home}/.config/nvim"
15
16 @task
17 def status(c):
18 result = c.run('Get-Command nvim', shell=ps)
19 print(f"Nvim installed? {result.ok}")
20
21 print(f"Config dir is {config_dir}")
22 c.run(f"ls {config_dir}", shell=ps)