mirror of
https://github.com/Baipyrus/dotfiles.git
synced 2024-12-25 10:51:46 +00:00
bugfix: create powershell profile directory if not exists
This commit is contained in:
parent
8a4fed4295
commit
94028eff12
@ -46,6 +46,12 @@ if ($null -eq $ubuntu)
|
|||||||
|
|
||||||
# Setting up PowerShell Profile
|
# Setting up PowerShell Profile
|
||||||
Write-Host "Setting up PowerShell profile..." -ForegroundColor Cyan
|
Write-Host "Setting up PowerShell profile..." -ForegroundColor Cyan
|
||||||
|
# Create local PowerShell profile directory
|
||||||
|
$psDir = Split-Path -Path $psProfile
|
||||||
|
if (-not (Test-Path $psDir))
|
||||||
|
{ New-Item -ItemType Directory -Path $psDir
|
||||||
|
}
|
||||||
|
# Copy existing startup script to destination
|
||||||
CopyFileWithPrompt "$dotfilesRepo\PowerShell\Microsoft.PowerShell_profile.ps1" $psProfile
|
CopyFileWithPrompt "$dotfilesRepo\PowerShell\Microsoft.PowerShell_profile.ps1" $psProfile
|
||||||
|
|
||||||
# Setting up self-made ProxySwitcher
|
# Setting up self-made ProxySwitcher
|
||||||
|
Loading…
Reference in New Issue
Block a user