mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-03-25 21:46:43 +01:00
Improved both scripts
This commit is contained in:
parent
0d4009ca1b
commit
ac2f03adfe
@ -1,3 +1,7 @@
|
||||
function prompt { $null }
|
||||
write-host -foregroundColor green "Welcome to PowerShell $($PSVersionTable.PSVersion)"
|
||||
|
||||
write-host -foregroundColor green "Welcome"
|
||||
#function prompt {$null} # PS>
|
||||
|
||||
#function prompt { "$ " } # $
|
||||
|
||||
function prompt { "$(Get-Location)\> " } # C:\
|
||||
|
@ -12,7 +12,7 @@ try {
|
||||
|
||||
copy-item "$PathToRepo/Scripts/my-profile.ps1" "$PathToProfile" -force
|
||||
|
||||
write-host -foregroundColor green "OK - updated profile $PathToProfile"
|
||||
write-host -foregroundColor green "OK - updated profile 'CurrentUserCurrentHost' (gets active on next login)"
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Loading…
Reference in New Issue
Block a user