parent
457d7a7425
commit
12db642a5c
|
|
@ -62,6 +62,7 @@ _install_ghq() {
|
|||
_mordu "Ghq already installed."
|
||||
else
|
||||
_mordu "Installing Ghq."
|
||||
_mordu "GOPATH = ${GOPATH}"
|
||||
go install github.com/x-motemen/ghq@latest
|
||||
fi
|
||||
}
|
||||
|
|
@ -99,6 +100,23 @@ _link_yadm_script() {
|
|||
}
|
||||
# }}} </link yadm script>
|
||||
|
||||
# {{{ <move old init to backup>
|
||||
_move_old_init_to_backup() {
|
||||
_init_file=(\
|
||||
"${HOME}/.bash_history" \
|
||||
"${HOME}/.bash_logout " \
|
||||
"${HOME}/.bash_profile " \
|
||||
"${HOME}/.bashrc")
|
||||
|
||||
for file in "${_init_file[@]}" ; do
|
||||
if [ -e "$file" ]; then
|
||||
_mordo "Found existing ${file}, moving to ${file}.bak."
|
||||
mv "$file" "$file.bak"
|
||||
fi
|
||||
done
|
||||
}
|
||||
# }}} </move old init to backup>
|
||||
|
||||
# {{{ <clone yadm dotz>
|
||||
_clone_yadm_dotz() {
|
||||
local _repo="https://git.mgk.one/ld/dotz"
|
||||
|
|
@ -131,6 +149,7 @@ _main() {
|
|||
_install_ghq
|
||||
#_clone_yadm
|
||||
#_link_yadm_script
|
||||
#_move_old_init_to_backup
|
||||
#_clone_yadm_dotz
|
||||
#_install_x_if_asked "$@"
|
||||
#_yadm_bootstrap
|
||||
|
|
|
|||
Loading…
Reference in a new issue