config/git: fix ln & sysinit

This commit is contained in:
xeruf 2021-07-13 12:14:58 +02:00
parent 9c6355bf62
commit b7d21127e1
2 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@ yc() {
alias sy="sysyadm" alias sy="sysyadm"
alias sysyadm="sudo yadm -Y /etc/yadm" 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() { gcn() {
if test $# -eq 0 || test -e $1 if test $# -eq 0 || test -e $1

View File

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
set -o pipefail
upCount=$(git rev-list --count HEAD...@{push} 2>/dev/null) upCount=$(git rev-list --count HEAD...@{push} 2>/dev/null)
count=$(expr $a + 3 \& ${upCount:-0} \> 3 \| 6) 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 git --no-pager lo -$count --color=always --graph HEAD @{push} | head -9 || git --no-pager lo -7