-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.ps1
More file actions
11 lines (9 loc) · 807 Bytes
/
install.ps1
File metadata and controls
11 lines (9 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
Write-Host -BackgroundColor Blue -ForegroundColor Black "Creating powershell directory..." -NoNewline
[void](New-Item -ItemType Directory "$env:USERPROFILE\Documents\WindowsPowerShell" -Force)
Write-Host -BackgroundColor Green -ForegroundColor Black " Created"
Write-Host -BackgroundColor Blue -ForegroundColor Black "Copying powershell profile..." -NoNewline
Copy-Item Microsoft.PowerShell_profile.ps1 "$env:USERPROFILE\Documents\WindowsPowerShell\"
Write-Host -BackgroundColor Green -ForegroundColor Black " Copied"
Write-Host -BackgroundColor Blue -ForegroundColor Black "Adding functions (alias)..." -NoNewline
Get-Content .\functions\* >> "$env:USERPROFILE\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1"
Write-Host -BackgroundColor Green -ForegroundColor Black " Added"