dotfiles

:)
git clone https://git.sr.ht/~ashymad/dotfiles
Log | Files | Refs | Submodules | LICENSE

commit e01e78d5d1b62570bd91bfdbeb3c7e608ec24217
parent 9b40a0d4a13ce61be8b85b23a4952478371a427b
Author: Szymon Mikulicz <szymon.mikulicz@posteo.net>
Date:   Tue,  2 Jul 2019 18:46:42 +0200

Fix the wrapper

Diffstat:
Mfish/.config/fish/functions/g.fish | 21+++++++++++++--------
1 file changed, 13 insertions(+), 8 deletions(-)

diff --git a/fish/.config/fish/functions/g.fish b/fish/.config/fish/functions/g.fish @@ -2,23 +2,28 @@ function g set len (count $argv) if test $len -gt 0 + if test $len -gt 1 + set rest $argv[2..$len] + else + set rest + end switch $argv[1] case "s" - git status $argv[2..$len] + git status case "a" - git add $argv[2..$len] + git add $rest case "c" - git commit $argv[2..$len] + git commit $rest case "p" - git push $argv[2..$len] + git push $rest case "pl" - git pull $argv[2..$len] + git pull $rest case "ch" - git checkout $argv[2..$len] + git checkout $rest case "d" - git diff $argv[2..$len] + git diff $rest case "m" - git merge $argv[2..$len] + git merge $rest case '*' git $argv end