Improved both scripts

This commit is contained in:
Markus Fleschutz 2021-02-25 11:57:02 +01:00
parent 0d4009ca1b
commit ac2f03adfe
2 changed files with 7 additions and 3 deletions

View File

@ -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:\

View File

@ -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])"