allow user disable segments

It works much faster than any command like `hg X`. If it fails we don't need to call `hg`. It makes prompt appearance much faster.
You can test it on your own machine. I cannot notice any lag even on deep directories like `/usr/lib64/python3.4/site-packages/pymongo/__pycache__/`.