From 5430b6213a5c6c3bafd7e25b1e80ccb2afd7f5ba Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 3 Dec 2020 13:46:45 +0000 Subject: [PATCH] XDG_DATA_HOME respecting powershell script (#1042) This version supports Powershell 5.1 (shipped in the latest install of Windows 10) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e2f7b64..8899a59 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ curl -fLo ~/.var/app/io.neovim.nvim/data/nvim/site/autoload/plug.vim \ ```powershell iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |` - ni "$env:LOCALAPPDATA/nvim-data/site/autoload/plug.vim" -Force + ni "$(@($env:XDG_DATA_HOME, $env:LOCALAPPDATA)[$null -eq $env:XDG_DATA_HOME])/nvim-data/site/autoload/plug.vim" -Force ``` ### Getting Help