From cdedba19748a636da5024d1aa5b22182fd0435f3 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Mon, 23 Jun 2025 13:03:07 +0200 Subject: [PATCH] Updated cd-recycle-bin.ps1 and cd-trash.ps1 --- scripts/cd-recycle-bin.ps1 | 8 ++++---- scripts/cd-trash.ps1 | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/cd-recycle-bin.ps1 b/scripts/cd-recycle-bin.ps1 index 2f301e50..1d00a4bd 100755 --- a/scripts/cd-recycle-bin.ps1 +++ b/scripts/cd-recycle-bin.ps1 @@ -1,11 +1,11 @@ <# .SYNOPSIS - Sets the working directory to the recycle bin folder + Sets the working dir to the recycle bin folder .DESCRIPTION This PowerShell script changes the working directory to the user's recycle bin folder. .EXAMPLE - PS> ./cd-recycle-bin - 📂C:\$Recycle.Bin\S-1-5-21-123404-23309-294260-1001 entered (has 2 files and 0 subfolders) + PS> ./cd-recycle-bin.ps1 + 📂C:\$Recycle.Bin\S-1-5-21-123404-23309-294260-1001 with 2 files and 0 folders entered. .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -30,7 +30,7 @@ try { Set-Location "$path" $files = Get-ChildItem $path -attributes !Directory $folders = Get-ChildItem $path -attributes Directory - "📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)" + "📂$path with $($files.Count) files and $($folders.Count) folders entered." exit 0 # success } catch { "⚠️ Error: $($Error[0])" diff --git a/scripts/cd-trash.ps1 b/scripts/cd-trash.ps1 index 5289ecb4..faac9341 100755 --- a/scripts/cd-trash.ps1 +++ b/scripts/cd-trash.ps1 @@ -1,11 +1,11 @@ <# .SYNOPSIS - Sets the working directory to the trash folder + Sets the working dir to the trash folder .DESCRIPTION This PowerShell script changes the working directory to the user's trash folder. .EXAMPLE PS> ./cd-trash - 📂C:\$Recycle.Bin\S-1-5-21-123404-23309-294260-1001 entered (has 4 files and 0 subfolders) + 📂C:\$Recycle.Bin\S-1-5-21-123404-23309-294260-1001 with 4 files and 0 folders entered. .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -30,7 +30,7 @@ try { Set-Location "$path" $files = Get-ChildItem $path -attributes !Directory $folders = Get-ChildItem $path -attributes Directory - "📂$path entered (has $($files.Count) files and $($folders.Count) subfolders)" + "📂$path with $($files.Count) files and $($folders.Count) folders entered." exit 0 # success } catch { "⚠️ Error: $($Error[0])"