commit 9b40a0d4a13ce61be8b85b23a4952478371a427b parent 716b722e806e49e81389cb11cdbf91fcb81368e3 Author: Szymon Mikulicz <szymon.mikulicz@posteo.net> Date: Tue, 2 Jul 2019 18:29:45 +0200 git wrapper Diffstat:
| A | fish/.config/fish/functions/g.fish | | | 26 | ++++++++++++++++++++++++++ |
1 file changed, 26 insertions(+), 0 deletions(-)
diff --git a/fish/.config/fish/functions/g.fish b/fish/.config/fish/functions/g.fish @@ -0,0 +1,26 @@ +#!/usr/bin/env fish +function g + set len (count $argv) + if test $len -gt 0 + switch $argv[1] + case "s" + git status $argv[2..$len] + case "a" + git add $argv[2..$len] + case "c" + git commit $argv[2..$len] + case "p" + git push $argv[2..$len] + case "pl" + git pull $argv[2..$len] + case "ch" + git checkout $argv[2..$len] + case "d" + git diff $argv[2..$len] + case "m" + git merge $argv[2..$len] + case '*' + git $argv + end + end +end