diff --git a/setup-dotz.sh b/setup-dotz.sh
index dda545b..4d63397 100755
--- a/setup-dotz.sh
+++ b/setup-dotz.sh
@@ -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() {
}
# }}}
+# {{{
+_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
+}
+# }}}
+
# {{{
_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