From: Edward Delaporte Date: Mon, 14 Oct 2024 22:28:17 +0000 (-0500) Subject: Update for Linux X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/a718a600345c4b5e4f951dc2ccd92b41e86ce4b3 Update for Linux --- diff --git a/invoke/nvim/tasks.py b/invoke/nvim/tasks.py index 3adc6f9..cbfac55 100644 --- a/invoke/nvim/tasks.py +++ b/invoke/nvim/tasks.py @@ -1,11 +1,17 @@ from invoke import task import os +import platform # $env:INVOKE_RUN_SHELL='C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' home = os.path.expanduser('~') -config_dir = f"{home}/AppData/Local/nvim" + ps = r'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' +config_dir = f"{home}/AppData/Local/nvim" + +if(platform.system() == 'Linux'): + ps = r'/usr/bin/pwsh' + config_dir = f"{home}/.config/nvim" @task def status(c):