From 4c9da08b9947d377c93dc90bdbae338ea2074b23 Mon Sep 17 00:00:00 2001 From: fourtf Date: Sat, 4 Apr 2020 23:38:14 +0200 Subject: [PATCH] improved path creation in powershell readme example --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bad081d..94aae5e 100644 --- a/README.md +++ b/README.md @@ -44,13 +44,11 @@ file as suggested [here][auto]. ###### Windows (PowerShell) ```powershell -md ~\vimfiles\autoload +New-Item ${env:USERPROFILE}\vimfiles\autoload -ItemType Directory -Force $uri = 'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' (New-Object Net.WebClient).DownloadFile( $uri, - $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath( - "~\vimfiles\autoload\plug.vim" - ) + "${env:USERPROFILE}\vimfiles\autoload\plug.vim" ) ```