Skip to content

Commit 5f89b68

Browse files
committed
✨ Updated gs function in pwsh/functions.ps1
1 parent df08af6 commit 5f89b68

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pwsh/functions.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
# $background = (get-host).ui.rawui.BackgroundColor
1515
# Set-Variable background -option Constant -value (get-host).ui.rawui.BackgroundColor
1616

17+
function Write-Green($str) {
18+
# Write-Color "`n Git Status `n" -Color Green
19+
Write-Host "`n"
20+
Write-Color " $str " -BackGroundColor Green -Color (get-host).ui.rawui.BackgroundColor
21+
Write-Host "`n"
22+
}
23+
1724
# -------------- #
1825
# Basic Commands | -------------------------------------------------------------------------------------- #
1926
# -------------- #
@@ -215,6 +222,7 @@ function AppendEnvPath([String]$path) { $env:PATH = $env:PATH + ";$path" }
215222
function gs {
216223
# Print-Green-Underline "Git Status:"
217224
# Write-Output "`n Git Status:`n"
225+
Write-Green "TEST"
218226
# TODO: Ensure PSWrite-Color is installed
219227
Write-Color "`n Git Status `n" -Color Green
220228
git status

0 commit comments

Comments
 (0)