I've searched and found several answers but I didn't succeed in altering mine.
Operating system : Mac OS X
My .bashrc content
# Before other PATHs...
PATH=${PATH}:/usr/local/share/python
alias la='ls -la'
function find_cpp_filepath_with_string { find $1 -name "*.cpp" -type f -exec grep -l $2 {} \;}
#export -f find_cpp_filepath_with_string
else
echo "WARNING: Can't find virtualenvwrapper.sh"
fi
The troublesome line is the following
function find_cpp_filepath_with_string { find $1 -name "*.cpp" -type f -exec grep -l $2 {} \;}
after trying source ~/.bashrc the result is :
line 21: syntax error: unexpected end of file