This commit is contained in:
parent
e770a75c3f
commit
948919c265
|
|
@ -99,12 +99,41 @@ _link_yadm_script() {
|
|||
}
|
||||
# }}} </link yadm script>
|
||||
|
||||
# {{{ <clone yadm dotz>
|
||||
_clone_yadm_dotz() {
|
||||
local _repo="https://git.mgk.one/ld/dotz"
|
||||
|
||||
_mordu "Using yadm to clone ${_repo}."
|
||||
$_yadm clone "$_repo"
|
||||
_mordu "${_repo} cloned."
|
||||
}
|
||||
# }}} </clone yadm dotz>
|
||||
|
||||
# {{{ <install x if asked>
|
||||
_install_x_if_asked() {
|
||||
# Check if -x was passed to setup-dotz, and if it was, install x.
|
||||
if [[ "$1" == "-x" ]]; then
|
||||
"${HOME}/.config/yadm/scripts/install-xorg.sh"
|
||||
fi
|
||||
}
|
||||
# }}} </install x if asked>
|
||||
|
||||
# {{{ <yadm bootstrap>
|
||||
_yadm_bootstrap() {
|
||||
_mordu "Performing yadm bootstrap."
|
||||
$_yadm bootstrap
|
||||
}
|
||||
# {{{ <yadm bootstrap>
|
||||
|
||||
# {{{ <main loop>
|
||||
_main() {
|
||||
_install_golang
|
||||
_install_ghq
|
||||
_clone_yadm
|
||||
_link_yadm_script
|
||||
_clone_yadm_dotz
|
||||
_install_x_if_asked "$@"
|
||||
_yadm_bootstrap
|
||||
}
|
||||
_main
|
||||
# }}} </main loop>
|
||||
|
|
|
|||
Loading…
Reference in a new issue