config/git: add sysyadm
This commit is contained in:
parent
031f1bc5b6
commit
560e9d769f
|
@ -157,3 +157,5 @@
|
||||||
|
|
||||||
[includeIf "gitdir:~/data/.git"]
|
[includeIf "gitdir:~/data/.git"]
|
||||||
path = "config-data"
|
path = "config-data"
|
||||||
|
[init]
|
||||||
|
defaultBranch = main
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue