Then use $BASH_IT

Now that we've gone through all that trouble to define $BASH_IT lets use it then.
pull/174/head
nickl- 2012-12-06 16:02:15 +02:00
parent b547b107bc
commit 3ecc3a6038
1 changed files with 4 additions and 2 deletions

View File

@ -3,13 +3,15 @@
BASH_IT=$(cd ${0%/*} && echo ${PWD}) BASH_IT=$(cd ${0%/*} && echo ${PWD})
cd "${OLDPWD}" cd "${OLDPWD}"
cp "${HOME}/.bash_profile" "${HOME}/.bash_profile.bak" cp "${HOME}/.bash_profile" "${HOME}/.bash_profile.bak"
cp "${HOME}/.bash_it/template/bash_profile.template.bash" "${HOME}/.bash_profile" echo "Your original .bash_profile has been backed up to .bash_profile.bak"
cp "${BASH_IT}/template/bash_profile.template.bash" "${HOME}/.bash_profile"
while true; do while true; do
read -p "Do you use Jekyll? (If you don't know what Jekyll is, answer 'n') [Y/N] " RESP read -p "Do you use Jekyll? (If you don't know what Jekyll is, answer 'n') [Y/N] " RESP
case ${RESP} in case ${RESP} in
[yY]) [yY])
cp "${HOME}/.bash_it/template/jekyllconfig.template.bash" "${HOME}/.jekyllconfig" cp "${BASH_IT}/template/jekyllconfig.template.bash" "${HOME}/.jekyllconfig"
echo "Copied the template .jekyllconfig into your home directory." \ echo "Copied the template .jekyllconfig into your home directory." \
"Edit this file to customize bash-it for using the Jekyll plugins" "Edit this file to customize bash-it for using the Jekyll plugins"
break break