]> us-delaporte.pagekite.me Git - dotfiles.git/blob - invoke/nvim/tasks.py
Update with cleaner ways to invoke Powershell in inv
[dotfiles.git] / invoke / nvim / tasks.py
1 from invoke import task
2 import os
3
4 # $env:INVOKE_RUN_SHELL='C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'
5
6 home = os.path.expanduser('~')
7 config_dir = f"{home}/AppData/Local/nvim"
8 ps = r'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'
9
10 @task
11 def status(c):
12 result = c.run('Get-Command nvim', shell=ps)
13 print(f"Nvim installed? {result.ok}")
14
15 print(f"Config dir is {config_dir}")
16 c.run(f"ls {config_dir}", shell=ps)