diff --git a/cmder/user-ConEmu.xml b/cmder/user-ConEmu.xml index f2a74ec..be91dc6 100644 --- a/cmder/user-ConEmu.xml +++ b/cmder/user-ConEmu.xml @@ -1,7 +1,7 @@ - + @@ -124,11 +124,11 @@ - - + + - - + + diff --git a/copyfile.cmd b/copyfile.cmd deleted file mode 100644 index 24aefdc..0000000 --- a/copyfile.cmd +++ /dev/null @@ -1,5 +0,0 @@ -set startdir = %cd% -set aliasdir = %USERPROFILE% -set localappdata = %LocalAppData% - -echo mklink aliases.cmd %stardir% \ No newline at end of file diff --git a/install.ps1 b/install.ps1 index 71f39d1..b40c51c 100644 --- a/install.ps1 +++ b/install.ps1 @@ -14,55 +14,87 @@ Write-Host "User Profile Directory: $($env:USERPROFILE)" # VS Code Directory $app_data = $env:APPDATA Write-Host "VS Code User Directory: $($app_data)\Code\User" + $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 Write-Host "Cmder Config Directory: $($cmder_root)\config" + +$cmder_user_conemu_xml_path = "$($cmder_root)\config\user_ConEmu.xml" +Write-Host "Cmder ConEmu Path: $($cmder_user_conemu_xml_path)" + $cmder_user_profile_cmd_path = "$($cmder_root)\config\user_profile.cmd" Write-Host "Cmder CMD User Profile Path: $($cmder_user_profile_cmd_path)" + $cmder_user_aliases_cmd_path = "$($cmder_root)\config\user_aliases.cmd" Write-Host "Cmder CMD Aliases Path: $($cmder_user_aliases_cmd_path)" + $cmder_user_profile_ps_path = "$($cmder_root)\config\user_profile.ps1" Write-Host "Cmder PowerShell Profile Path: $($cmder_user_profile_ps_path)" # Neovim Config Directory $local_app_data = $env:LOCALAPPDATA Write-Host "Neovim Init Directory: $($local_app_data)\nvim" + $neovim_init_path = "$($local_app_data)\nvim\init.vim" Write-Host "Neovim Init Path: $($neovim_init_path)" +# Cmder DOSKEY Aliases if (-not (Test-Path -Path $cmder_user_aliases_cmd_path)) { - + $repo_cmder_user_aliases_cmd_path = "$($PWD)\cmder\user_aliases.cmd" + Write-Host "Repo user_aliases.cmd: $($repo_cmder_user_aliases_cmd_path)" + New-Item -Path $cmder_user_aliases_cmd_path -ItemType SymbolicLink -Value $repo_cmder_user_aliases_cmd_path + Get-Item -Path $cmder_user_aliases_cmd_path } else { Write-Host "Cmder User Aliases Exists" } - +# Cmder CMD Profile if (-not (Test-Path -Path $cmder_user_profile_cmd_path)) { - + $repo_cmder_user_profile_cmd_path = "$($PWD)\cmder\user_aliases.cmd" + Write-Host "Repo user_profile.cmd: $($repo_cmder_user_profile_cmd_path)" + New-Item -Path $cmder_user_profile_cmd_path -ItemType SymbolicLink -Value $repo_cmder_user_profile_cmd_path + Get-Item -Path $cmder_user_profile_cmd_path } else { Write-Host "Cmder User Profile Exists" } - +# Cmder Powershell User Profile if (-not (Test-Path -Path $cmder_user_profile_ps_path)) { - + $repo_cmder_user_profile_ps_path = "$($PWD)\cmder\user_profile.ps1" + Write-Host "Repo user_profile.ps1: $($repo_cmder_user_profile_ps_path)" + New-Item -Path $cmder_user_profile_ps_path -ItemType SymbolicLink -Value $repo_cmder_user_profile_ps_path + Get-Item -Path $cmder_user_profile_ps_path } else { Write-Host "Cmder Powershell Profile Exists" } +# Cmder ConEmu Settings +if(-not (Test-Path -Path $cmder_user_conemu_xml_path)) { + $repo_cmder_user_conemu_cml_path = "$($PWD)\cmder\user-ConEmu.xml" + Write-Host "Repo user-ConEmu.xml: $($repo_cmder_user_conemu_cml_path)" + New-Item -Path $cmder_user_conemu_xml_path -ItemType SymbolicLink -Value $repo_cmder_user_conemu_cml_path +} else { + Write-Host "Cmder ConEum User Profile Exists" +} +# VSCODE Settings if (-not (Test-Path -Path $vscode_user_settings_path)) { - + $repo_vscode_user_settings_path = "$($PWD)\vscode\settings.json)" + Write-Host "Repo VSCode User Settings: $($repo_vscode_user_settings_path)" + New-Item -Path $vscode_user_settings_path -ItemType SymbolicLink -Value $repo_vscode_user_settings_path + Get-Item -Path $vscode_user_settings_path } else { Write-Host "VS Code User Settings Exists" } +# NeoVim init if (-not (Test-Path -Path $neovim_init_path)) { - Write-Host "Repo init.vim: $($PWD)\vim\init.vim" - New-Item -Path $neovim_init_path -ItemType SymbolicLink -Value "$($PWD)\vim\init.vim" + $repo_neovim_init_path = "$($PWD)\vim\init.vim" + Write-Host "Repo init.vim: $($repo_neovim_init_path)" + New-Item -Path $neovim_init_path -ItemType SymbolicLink -Value $repo_neovim_init_path Get-Item -Path $neovim_init_path } else { Write-Host "Neovim Init Path Exists" diff --git a/readme.md b/readme.md index ca894ae..7ca5e7d 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,5 @@ # DOSKEY Aliases + Get command line aliases in your Windows Command Prompt. -Create symlinks from repo to repsective dirs. \ No newline at end of file +Create SymbolicLinks from repo to respective directories using the [Install PowerShell Script](install.ps1). diff --git a/vscode/settings.json b/vscode/settings.json index 4b7650a..1f61cfd 100644 --- a/vscode/settings.json +++ b/vscode/settings.json @@ -30,6 +30,7 @@ "Configruation", "Crosstab", "Crosstabs", + "DOSKEY", "Datasource", "Etag", "GIFs", diff --git a/winget-installs.cmd b/winget/winget-installs.cmd similarity index 100% rename from winget-installs.cmd rename to winget/winget-installs.cmd