dotfiles/.config/nushell/conf.d/99-git.nu.cgt

21 lines
375 B
Text
Raw Normal View History

2024-07-12 16:41:11 +02:00
<! function gitalias(new, old) !>
def --wrapped "git <% new %>" [...rest] {
git <% old %> ...$rest
}
<! end !>
2024-07-14 19:35:55 +02:00
def --wrapped "git a" [p: path, ...rest] {
git add $p ...$rest
}
2024-07-12 16:41:11 +02:00
<!
gitalias("c", "commit")
gitalias("ch", "checkout")
gitalias("l", "log")
gitalias("p", "push")
gitalias("s", "status")
gitalias("schieb", "push")
gitalias("zieh", "pull")
!>