From bb1452bb84f26f925ec94fab35230320bffef5b6 Mon Sep 17 00:00:00 2001 From: nickl- Date: Thu, 6 Dec 2012 16:17:06 +0200 Subject: [PATCH] We do insist though, you locate us at ~/.bash_it --- install.sh | 2 ++ 1 file changed, 2 insertions(+) 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}"*))