From 285c50b9bf046a0cdbaaedbd1f57545b73382a8f Mon Sep 17 00:00:00 2001 From: "Eric D. Rohler" Date: Sun, 20 Jun 2021 10:17:42 -0400 Subject: [PATCH 1/4] update cmder_root env set --- install.ps1 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/install.ps1 b/install.ps1 index b40c51c..2d048c7 100644 --- a/install.ps1 +++ b/install.ps1 @@ -19,7 +19,15 @@ $vscode_user_settings_path = "$($app_data)\Code\User\settings.json" Write-Host "VS Code User Settings Path: $($vscode_user_settings_path)" # Cmder Config Directory -$cmder_root = $env:CMDER_ROOT +$cmder_root +if(-not $env:CMDER_ROOT) +{ + [System.Environment]::SetEnvironmentVariable(("CMDER_ROOT", "$($env:USERPROFILE)\Cmder")) + $cmder_root = $env:CMDER_ROOT +} +else { + $cmder_root = $env:CMDER_ROOT +} Write-Host "Cmder Config Directory: $($cmder_root)\config" $cmder_user_conemu_xml_path = "$($cmder_root)\config\user_ConEmu.xml" -- 2.45.2 From 11f2ec778e17d66a971350d570c878ba565fe3e5 Mon Sep 17 00:00:00 2001 From: "Eric D. Rohler" Date: Sun, 20 Jun 2021 10:25:43 -0400 Subject: [PATCH 2/4] remove add env var --- install.ps1 | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/install.ps1 b/install.ps1 index 2d048c7..759b0e2 100644 --- a/install.ps1 +++ b/install.ps1 @@ -19,15 +19,7 @@ $vscode_user_settings_path = "$($app_data)\Code\User\settings.json" Write-Host "VS Code User Settings Path: $($vscode_user_settings_path)" # Cmder Config Directory -$cmder_root -if(-not $env:CMDER_ROOT) -{ - [System.Environment]::SetEnvironmentVariable(("CMDER_ROOT", "$($env:USERPROFILE)\Cmder")) - $cmder_root = $env:CMDER_ROOT -} -else { - $cmder_root = $env:CMDER_ROOT -} +$cmder_root = "$($env:USERPROFILE)\Cmder" Write-Host "Cmder Config Directory: $($cmder_root)\config" $cmder_user_conemu_xml_path = "$($cmder_root)\config\user_ConEmu.xml" -- 2.45.2 From 8686405346f6a9c2bb7b68640317a62b13ef6f9a Mon Sep 17 00:00:00 2001 From: "Eric D. Rohler" Date: Sun, 20 Jun 2021 10:33:50 -0400 Subject: [PATCH 3/4] update dir creation --- install.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.ps1 b/install.ps1 index 759b0e2..6a3e163 100644 --- a/install.ps1 +++ b/install.ps1 @@ -13,6 +13,7 @@ Write-Host "User Profile Directory: $($env:USERPROFILE)" # VS Code Directory $app_data = $env:APPDATA +New-Item -ItemType Directory -Force -Path "$($app_data)\Code\User" Write-Host "VS Code User Directory: $($app_data)\Code\User" $vscode_user_settings_path = "$($app_data)\Code\User\settings.json" @@ -20,6 +21,7 @@ Write-Host "VS Code User Settings Path: $($vscode_user_settings_path)" # Cmder Config Directory $cmder_root = "$($env:USERPROFILE)\Cmder" +New-Item -ItemType Directory -Force -Path $cmder_root Write-Host "Cmder Config Directory: $($cmder_root)\config" $cmder_user_conemu_xml_path = "$($cmder_root)\config\user_ConEmu.xml" @@ -36,6 +38,7 @@ Write-Host "Cmder PowerShell Profile Path: $($cmder_user_profile_ps_path)" # Neovim Config Directory $local_app_data = $env:LOCALAPPDATA +New-Item -ItemType Directory -Force -Path "$($local_app_data)\nvim" Write-Host "Neovim Init Directory: $($local_app_data)\nvim" $neovim_init_path = "$($local_app_data)\nvim\init.vim" -- 2.45.2 From 1ddac8795e52f5127cb73d2921dec2ee5563a31b Mon Sep 17 00:00:00 2001 From: "Eric D. Rohler" Date: Sun, 20 Jun 2021 10:37:07 -0400 Subject: [PATCH 4/4] update cmder path --- install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.ps1 b/install.ps1 index 6a3e163..343b8be 100644 --- a/install.ps1 +++ b/install.ps1 @@ -21,7 +21,7 @@ Write-Host "VS Code User Settings Path: $($vscode_user_settings_path)" # Cmder Config Directory $cmder_root = "$($env:USERPROFILE)\Cmder" -New-Item -ItemType Directory -Force -Path $cmder_root +New-Item -ItemType Directory -Force -Path "$($cmder_root)\config" Write-Host "Cmder Config Directory: $($cmder_root)\config" $cmder_user_conemu_xml_path = "$($cmder_root)\config\user_ConEmu.xml" -- 2.45.2