nushell: add git aliases

This commit is contained in:
LordMZTE 2024-07-12 16:41:11 +02:00
parent ff900d0b98
commit e3819ca789
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

@ -0,0 +1,17 @@
<! function gitalias(new, old) !>
def --wrapped "git <% new %>" [...rest] {
git <% old %> ...$rest
}
<! end !>
<!
gitalias("a", "add")
gitalias("c", "commit")
gitalias("ch", "checkout")
gitalias("l", "log")
gitalias("p", "push")
gitalias("s", "status")
gitalias("schieb", "push")
gitalias("zieh", "pull")
!>