diff --git a/install.zsh b/install.zsh index a1ffb2b..f4550f6 100755 --- a/install.zsh +++ b/install.zsh @@ -105,6 +105,7 @@ function install() { install_homebrew install_oh_my_zsh brew_bundle_install + initialize_symbolic_links echo "Installation is complete!" } diff --git a/install/symlink.zsh b/install/symlink.zsh index e56a692..aacdd04 100755 --- a/install/symlink.zsh +++ b/install/symlink.zsh @@ -1,9 +1,15 @@ #!/usr/bin/env zsh # config +if [ ! -d "${HOME}/.config" ]; then + mkdir "${HOME}/.config" +fi ln -nfs "${HOME}/dotfiles/.config/git" "${HOME}/.config/git" ln -nfs "${HOME}/dotfiles/.config/git/.gitconfig" "${HOME}/.gitconfig" ln -nfs "${HOME}/dotfiles/.config/gh" "${HOME}/.config/gh" # zshrc +if [ -f "${HOME}/.zshrc" ]; then + mv "${HOME}/.zshrc" "${HOME}/.zshrc.bak" +fi ln -nfs "${HOME}/dotfiles/.zshrc" "${HOME}/.zshrc"