feat: use softlink for zsh configs

This commit is contained in:
Price Hiller 2022-07-30 22:27:28 -05:00
parent f42f6c0f2a
commit 58895d5f30

View File

@ -158,9 +158,9 @@ deploy-config() {
continue
fi
log "info" "Copying ${GREEN}${install_key}${RESET_BOLD}, ${GREEN}${src_path}${RESET_BOLD} to ${GREEN}${dest_path}${RESET_BOLD}"
if ! cp -r "${src_path}" "${dest_path}"; then
log "error" "Failed copying ${GREEN}${install_key}${RESET_BOLD}, ${GREEN}${src_path}${RESET_BOLD} to ${GREEN}${dest_path}${RESET_BOLD}"
log "info" "Linking ${GREEN}${install_key}${RESET_BOLD}, ${GREEN}${src_path}${RESET_BOLD} to ${GREEN}${dest_path}${RESET_BOLD}"
if ! ln -s "${src_path}" "${dest_path}"; then
log "error" "Failed linking ${GREEN}${install_key}${RESET_BOLD}, ${GREEN}${src_path}${RESET_BOLD} to ${GREEN}${dest_path}${RESET_BOLD}"
return 1
fi
done