Add main powershell install script
This commit is contained in:
parent
4ae3b2d8c4
commit
88450efd47
3 changed files with 19 additions and 2 deletions
17
Install.ps1
Normal file
17
Install.ps1
Normal file
|
@ -0,0 +1,17 @@
|
|||
function Install-Config {
|
||||
param (
|
||||
[string]$ConfigPath
|
||||
)
|
||||
|
||||
Push-Location $ConfigPath
|
||||
& ".\.Install.ps1"
|
||||
Pop-Location
|
||||
}
|
||||
|
||||
Push-Location src
|
||||
|
||||
Install-Config Git
|
||||
Install-Config Neovim
|
||||
Install-Config PowerShell
|
||||
|
||||
Pop-Location
|
|
@ -1,2 +1,2 @@
|
|||
New-Item -ItemType "directory" -Path "$HOME\AppData\Local\nvim"
|
||||
New-Item -ItemType "directory" -Path "$HOME\AppData\Local\nvim" -Force
|
||||
Copy-Item ".\init.vim" "$HOME\AppData\Local\nvim\"
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
New-Item -ItemType "directory" -Path "$HOME\Documents\PowerShell"
|
||||
New-Item -ItemType "directory" -Path "$HOME\Documents\PowerShell" -Force
|
||||
Copy-Item ".\profile.ps1" "$HOME\Documents\PowerShell\"
|
||||
|
|
Loading…
Reference in a new issue