Improve the scripts

This commit is contained in:
Markus 2021-04-18 13:55:53 +02:00
parent 7ffe1aae95
commit f83042c654
7 changed files with 7 additions and 7 deletions

View File

@ -9,7 +9,7 @@
try {
$TargetDir = resolve-path "$HOME/Downloads/"
set-location "$TargetDir"
"📂 $TargetDir"
" 📂$TargetDir"
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -9,7 +9,7 @@
try {
$TargetDir = resolve-path "$HOME/"
set-location "$TargetDir"
"📂 $TargetDir"
" 📂$TargetDir"
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -9,7 +9,7 @@
try {
$TargetDir = resolve-path "$HOME/Music/"
set-location "$TargetDir"
"📂 $TargetDir"
" 📂$TargetDir"
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -9,7 +9,7 @@
try {
$TargetDir = resolve-path "$HOME/Repos/"
set-location "$TargetDir"
"📂 $TargetDir"
" 📂$TargetDir"
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -13,7 +13,7 @@ try {
$TargetDir = resolve-path "C:/"
}
set-location "$TargetDir"
"📂 $TargetDir"
" 📂$TargetDir"
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -9,7 +9,7 @@
try {
$TargetDir = resolve-path "$PSScriptRoot/"
set-location "$TargetDir"
"📂 $TargetDir"
" 📂$TargetDir"
exit 0
} catch {
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

View File

@ -9,7 +9,7 @@
if ($IsLinux) { $Username = $(whoami) } else { $Username = $env:USERNAME }
$Hostname = $(hostname)
$host.ui.RawUI.WindowTitle = "$Username @ $Hostname"
"🧑 $Username enters 💻$Hostname at $(Get-Location)"
"🧑$Username entered 💻$Hostname at 📂$(Get-Location)"
# My Command Prompt