From 5def3836eabc9dd7ee9c58767bf8cbddb304dcf3 Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Mon, 7 Dec 2020 21:55:25 +0100 Subject: [PATCH] config/git: little aliases --- .config/git/config | 2 ++ .config/shell/git | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/git/config b/.config/git/config index a1ec983..5db767b 100644 --- a/.config/git/config +++ b/.config/git/config @@ -62,6 +62,7 @@ r = remote -v b = branch -vv + ba = b -a ref = reflog rev = rev-parse --short head = rev-parse --short HEAD @@ -121,6 +122,7 @@ # data journal = !git cme "notes/journal:" -- $(git root)/2-standards/notes/journal + note = !git cme "notes:" -- $(git root)/2-standards/notes [filter "lfs"] clean = git-lfs clean -- %f diff --git a/.config/shell/git b/.config/shell/git index 2849c16..a6e743b 100644 --- a/.config/shell/git +++ b/.config/shell/git @@ -81,7 +81,7 @@ gitremote() { gitclone() { remote=$(gitremote "$@") echo $remote - git clone $remote ${@:4} + git clone $remote ${@:4} || return $? cd "$(test $4 && echo $4 || basename ${remote/.git})" }