mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-01-12 08:58:16 +01:00
Updated update-powershell-profile.ps1
This commit is contained in:
parent
79e6e6150f
commit
f1584f83f3
@ -9,7 +9,7 @@
|
|||||||
PS> ./update-powershell-profile.ps1
|
PS> ./update-powershell-profile.ps1
|
||||||
⏳ (1/2) Query location of PowerShell profile 'CurrentUserCurrentHost'...
|
⏳ (1/2) Query location of PowerShell profile 'CurrentUserCurrentHost'...
|
||||||
⏳ (2/2) Copy my-profile.ps1 to C:\Users\Markus\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1...
|
⏳ (2/2) Copy my-profile.ps1 to C:\Users\Markus\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1...
|
||||||
✔️ PowerShell profile updated - it get's active on next login.
|
✔️ Your PowerShell profile is updated - it get's active on next login.
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -27,7 +27,7 @@ try {
|
|||||||
$null = New-Item -Path $pathToProfile -ItemType "file" -Force
|
$null = New-Item -Path $pathToProfile -ItemType "file" -Force
|
||||||
Copy-Item "$path" "$pathToProfile" -force
|
Copy-Item "$path" "$pathToProfile" -force
|
||||||
|
|
||||||
"✔️ PowerShell profile updated - it get's active on next login."
|
"✔️ Your PowerShell profile is updated - it get's active on next login."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Loading…
Reference in New Issue
Block a user