diff --git a/.config/shell/git b/.config/shell/git index 44247c4..379a137 100644 --- a/.config/shell/git +++ b/.config/shell/git @@ -13,7 +13,7 @@ yc() { alias sy="sysyadm" alias sysyadm="sudo yadm -Y /etc/yadm" -alias sysinit="sysyadm init -w /; sysyadm config include.path '$XDG_CONFIG_HOME/git/config'" +alias sysinit="sysyadm init -b main -w / && sysyadm gitconfig include.path '$XDG_CONFIG_HOME/git/config'" gcn() { if test $# -eq 0 || test -e $1 diff --git a/.local/bin/scripts/git-ln b/.local/bin/scripts/git-ln index 27f63be..c493abd 100755 --- a/.local/bin/scripts/git-ln +++ b/.local/bin/scripts/git-ln @@ -1,4 +1,5 @@ #!/bin/sh +set -o pipefail upCount=$(git rev-list --count HEAD...@{push} 2>/dev/null) count=$(expr $a + 3 \& ${upCount:-0} \> 3 \| 6) git --no-pager lo -$count --color=always --graph HEAD @{push} | head -9 || git --no-pager lo -7