This commit is contained in:
Junegunn Choi 2013-11-26 19:05:20 +09:00
parent 18a2fbf54a
commit 344b57fe33

View File

@ -33,7 +33,7 @@ else
fi fi
# Auto-completion # Auto-completion
read -p "Do you want to add auto-completion support? (y/n) " -n 1 -r read -p "Do you want to add auto-completion support? ([y]/n) " -n 1 -r
echo echo
[[ ! $REPLY =~ ^[Nn]$ ]] [[ ! $REPLY =~ ^[Nn]$ ]]
auto_completion=$? auto_completion=$?
@ -67,7 +67,7 @@ for shell in bash zsh; do
echo "Update $rc:" echo "Update $rc:"
echo " - $src" echo " - $src"
if [ $(grep "$src" $rc | wc -l) -gt 0 ]; then if [ $(grep -F "$src" $rc | wc -l) -gt 0 ]; then
echo " - Not added (already being sourced)" echo " - Not added (already being sourced)"
else else
echo $src >> $rc echo $src >> $rc