Skip to content
Snippets Groups Projects
Commit 344b57fe authored by Junegunn Choi's avatar Junegunn Choi
Browse files

grep -F

parent 18a2fbf5
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ else
fi
# 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
[[ ! $REPLY =~ ^[Nn]$ ]]
auto_completion=$?
......@@ -67,7 +67,7 @@ for shell in bash zsh; do
echo "Update $rc:"
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)"
else
echo $src >> $rc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment