refactored bashrc for search