config/git: add sysyadm

This commit is contained in:
xeruf 2021-06-06 18:37:36 +02:00
parent 031f1bc5b6
commit 560e9d769f
2 changed files with 6 additions and 0 deletions

View File

@ -157,3 +157,5 @@
[includeIf "gitdir:~/data/.git"] [includeIf "gitdir:~/data/.git"]
path = "config-data" path = "config-data"
[init]
defaultBranch = main

View File

@ -11,6 +11,10 @@ yc() {
yadm commit -v --template /tmp/yc-msg ${@:2} -- "$XDG_CONFIG_HOME/$1" yadm commit -v --template /tmp/yc-msg ${@:2} -- "$XDG_CONFIG_HOME/$1"
} }
alias sy="sysyadm"
alias sysyadm="sudo yadm -Y /etc/yadm"
alias sysinit="sysyadm init -w /; sysyadm config include.path '$XDG_CONFIG_HOME/git/config'"
gcn() { gcn() {
if test $# -eq 0 || test -e $1 if test $# -eq 0 || test -e $1
then then