From 814178f7eedadae8b39ab8fc90654c17bbbf6247 Mon Sep 17 00:00:00 2001 From: "Eric D. Rohler" Date: Thu, 2 Apr 2020 20:40:46 -0400 Subject: [PATCH] adding install script --- cmder/user_aliases.cmd | 5 ++++- install.ps1 | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 install.ps1 diff --git a/cmder/user_aliases.cmd b/cmder/user_aliases.cmd index 5a4bcaf..593182b 100644 --- a/cmder/user_aliases.cmd +++ b/cmder/user_aliases.cmd @@ -11,11 +11,14 @@ pwd=cd clear=cls history=cat -n "%CMDER_ROOT%\config\.history" unalias=alias /d $1 -vi=vim $* +vi=nvim $* +vim=nvim $* cmderr=cd /d "%CMDER_ROOT%" home=cd /d %USERPROFILE% ~=cd /d %USERPROFILE% +;= rem apps + ;= rem top-level repos repos=cd /d "D:\dev\repos" blogging=cd /d "d:\dev\repos\blogging\blogging" diff --git a/install.ps1 b/install.ps1 new file mode 100644 index 0000000..ef7b9b0 --- /dev/null +++ b/install.ps1 @@ -0,0 +1,34 @@ +# User Profile +Write-Host "$($env:USERPROFILE)" +# VS Code Directory +Write-Host "$($env:APPDATA)\Code\User" +# Cmder Config Directory +Write-Host "$($env:CMDER_ROOT)\config" + +$cmder_user_aliases_cmd_path = "$($env:CMDER_ROOT)\config\user_aliases.cmd" +if (-not (Test-Path -Path $cmder_user_aliases_cmd_path)) { + +} else { + Write-Host "Cmder User Aliases Exists" +} + +$cmder_user_profile_cmd_path = "$($env:CMDER_ROOT)\config\user_profile.cmd" +if (-not (Test-Path -Path $cmder_user_profile_cmd_path)) { + +} else { + Write-Host "Cmder User Profile Exists" +} + +$cmder_user_profile_ps_path = "$($env:CMDER_ROOT)\config\user_profile.ps1" +if (-not (Test-Path -Path $cmder_user_profile_ps_path)) { + +} else { + Write-Host "Cmder Powershell Profile Exists" +} + +$vscode_user_settings_path = "$($env:APPDATA)\Code\User" +if (-not (Test-Path -Path $vscode_user_settings_path)) { + +} else { + Write-Host "VS Code User Settings Exists" +} \ No newline at end of file