Skip to content

Commit 18caa26

Browse files
committed
✨ Updated git aliases to accept cli arguments
1 parent 7e4d8ad commit 18caa26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pwsh/aliases.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,14 @@ ${function:gs} = { Get-GitStatus }
141141
Set-Alias -Name gcd -Value Invoke-GitClone
142142

143143
# ls with git status
144-
${function:lsg} = { Write-Host ""; bash C:\bin\ls-with-git-status\lsg }
144+
${function:lsg} = { Write-Host ""; bash C:\bin\ls-with-git-status\lsg @args }
145145
# Set-Alias -Name ls -Value lsg -option AllScope -Force
146146

147147
# Git branch status
148-
${function:gbs} = { Write-Host ""; bash C:\bin\git-branch-status\git-branch-status -l }
148+
${function:gbs} = { Write-Host ""; bash C:\bin\git-branch-status\git-branch-status @args }
149149

150150
# Git Multi Status
151-
${function:mgs} = { bash C:\bin\multi-git-status\mgitstatus --depth=0 }
151+
${function:mgs} = { bash C:\bin\multi-git-status\mgitstatus --depth=0 @args }
152152

153153
# Favour GitHub's hub client over vanilla git
154154
if (Get-Command hub -ErrorAction SilentlyContinue) { Set-Alias -Name git -Value hub }

0 commit comments

Comments
 (0)