shell: add alias for git sub-commands
This commit is contained in:
parent
5618b31e9f
commit
08e9c508e6
6 changed files with 24 additions and 0 deletions
4
stow/.config/fish/functions/ga.fish
Normal file
4
stow/.config/fish/functions/ga.fish
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
function ga --wraps='git add' --description 'alias ga=git add'
|
||||
git add $argv
|
||||
|
||||
end
|
||||
4
stow/.config/fish/functions/gc.fish
Normal file
4
stow/.config/fish/functions/gc.fish
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
function gc --wraps='git commit' --description 'alias gc=git commit'
|
||||
git commit $argv
|
||||
|
||||
end
|
||||
4
stow/.config/fish/functions/glo.fish
Normal file
4
stow/.config/fish/functions/glo.fish
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
function glo --wraps='git log' --description 'alias glo=git log'
|
||||
git log $argv
|
||||
|
||||
end
|
||||
4
stow/.config/fish/functions/gph.fish
Normal file
4
stow/.config/fish/functions/gph.fish
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
function gph --wraps='git push' --description 'alias gph=git push'
|
||||
git push $argv
|
||||
|
||||
end
|
||||
4
stow/.config/fish/functions/gpl.fish
Normal file
4
stow/.config/fish/functions/gpl.fish
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
function gpl --wraps='git pull' --description 'alias gpl=git pull'
|
||||
git pull $argv
|
||||
|
||||
end
|
||||
4
stow/.config/fish/functions/gs.fish
Normal file
4
stow/.config/fish/functions/gs.fish
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
function gs --wraps='git status' --description 'alias gs=git status'
|
||||
git status $argv
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue