diff --git a/scripts/cd-repo.ps1 b/scripts/cd-repo.ps1 index 942110f9..065dc9ce 100755 --- a/scripts/cd-repo.ps1 +++ b/scripts/cd-repo.ps1 @@ -7,7 +7,8 @@ Specifies the folder name of the Git repository .EXAMPLE PS> ./cd-repo.ps1 rust - πŸ“‚C:\Repos\rust Β· on branch: ## main ... origin/main + πŸ“‚C:\Repos\rust + 🌿on branch: ## main ... origin/main .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -38,7 +39,7 @@ try { $path = Resolve-Path "$path" Set-Location "$path" - Write-Host "πŸ“‚$path Β· on branch: " -noNewline + Write-Host "πŸ“‚$path`n🌿on branch: " -noNewline & git status --short --branch --show-stash exit 0 # success } catch { diff --git a/scripts/clean-repo.ps1 b/scripts/clean-repo.ps1 index 15b55618..11fbaf70 100755 --- a/scripts/clean-repo.ps1 +++ b/scripts/clean-repo.ps1 @@ -12,7 +12,7 @@ ⏳ (2/4) Checking local repository... C:\Repos\rust ⏳ (3/4) Removing untracked files in repository... ⏳ (4/4) Removing untracked files in submodules... - βœ… Repo πŸ“‚rust successfully cleaned up in 2s. + βœ… Cleaned up repo πŸ“‚rust in 2s. .LINK https://github.com/fleschutz/PowerShell .NOTES @@ -45,7 +45,7 @@ try { if ($lastExitCode -ne "0") { throw "'git clean' in the submodules failed with exit code $lastExitCode" } [int]$elapsed = $stopWatch.Elapsed.TotalSeconds - "βœ… Repo πŸ“‚$repoName successfully cleaned up in $($elapsed)s." + "βœ… Cleaned up repo πŸ“‚$repoName in $($elapsed)s." exit 0 # success } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"