shell: add alias for git sub-commands

This commit is contained in:
Nico 2025-07-01 00:03:34 +10:00
parent 5618b31e9f
commit 08e9c508e6
Signed by: nico
SSH key fingerprint: SHA256:XuacYOrGqRxC3jVFjfLROn1CSvLz85Dec6N7O9Gwu/0
6 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,4 @@
function ga --wraps='git add' --description 'alias ga=git add'
git add $argv
end

View file

@ -0,0 +1,4 @@
function gc --wraps='git commit' --description 'alias gc=git commit'
git commit $argv
end

View file

@ -0,0 +1,4 @@
function glo --wraps='git log' --description 'alias glo=git log'
git log $argv
end

View file

@ -0,0 +1,4 @@
function gph --wraps='git push' --description 'alias gph=git push'
git push $argv
end

View file

@ -0,0 +1,4 @@
function gpl --wraps='git pull' --description 'alias gpl=git pull'
git pull $argv
end

View file

@ -0,0 +1,4 @@
function gs --wraps='git status' --description 'alias gs=git status'
git status $argv
end