mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-22 09:58:19 +02:00
Improve a bit
This commit is contained in:
parent
9ce6a1e06f
commit
ff683cdf96
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
# The Welcome Message
|
# The Welcome Message
|
||||||
# -------------------
|
# -------------------
|
||||||
"Welcome to PowerShell at $(hostname) in 📂$(get-location)"
|
"Welcome to PowerShell at $(hostname)'s 📂$(get-location)"
|
||||||
|
|
||||||
|
|
||||||
# The Window Title
|
# The Window Title
|
||||||
|
@ -20,7 +20,7 @@ try {
|
|||||||
for ([int]$i = 0; $i -lt $percent; $i += 2) {
|
for ([int]$i = 0; $i -lt $percent; $i += 2) {
|
||||||
$obj.SendKeys([char]175) # each tick is +2%
|
$obj.SendKeys([char]175) # each tick is +2%
|
||||||
}
|
}
|
||||||
& "$PSScriptRoot/give-reply.ps1" "$($percent)% more volume"
|
& "$PSScriptRoot/give-reply.ps1" "OK, $($percent)% louder."
|
||||||
exit 0 # success
|
exit 0 # success
|
||||||
} catch {
|
} catch {
|
||||||
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
|
||||||
|
Loading…
Reference in New Issue
Block a user