update nushell aliases

This commit is contained in:
LordMZTE 2024-07-14 19:35:55 +02:00
parent 36a23d6210
commit e5393214bd
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
2 changed files with 10 additions and 1 deletions

View file

@ -4,3 +4,9 @@ def la [path: glob = "."] { ls -a $path | sort-by type }
alias nv = nvim alias nv = nvim
alias nvide = & neovide "--no-fork" alias nvide = & neovide "--no-fork"
# "new shell"
alias ns = enter .
# "quit shell"
alias qs = dexit

View file

@ -4,8 +4,11 @@ def --wrapped "git <% new %>" [...rest] {
} }
<! end !> <! end !>
def --wrapped "git a" [p: path, ...rest] {
git add $p ...$rest
}
<! <!
gitalias("a", "add")
gitalias("c", "commit") gitalias("c", "commit")
gitalias("ch", "checkout") gitalias("ch", "checkout")
gitalias("l", "log") gitalias("l", "log")