mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-11-11 20:43:00 +01:00
nushell: add git aliases
This commit is contained in:
parent
ff900d0b98
commit
e3819ca789
1 changed files with 17 additions and 0 deletions
17
.config/nushell/conf.d/99-git.nu.cgt
Normal file
17
.config/nushell/conf.d/99-git.nu.cgt
Normal 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")
|
||||
!>
|
Loading…
Reference in a new issue