diff --git a/install.sh b/install.sh index e6376a88..d85362db 100755 --- a/install.sh +++ b/install.sh @@ -4,6 +4,8 @@ BASH_IT=$(cd ${0%/*} && echo ${PWD}) cd "${OLDPWD}" cp "${HOME}/.bash_profile" "${HOME}/.bash_profile.bak" +[[ "${BASH_IT}" != "${HOME}/.bash_it" ]] && cp -Rf "${BASH_IT}" "${HOME}/.bash_it" + BASH_PROFILE_BAK="${HOME}/.bash_profile.bak" if [ -f "${BASH_PROFILE_BAK}" ]; then list=($(ls "${BASH_PROFILE_BAK}"*))