override histfile from env - fixes #831 and copies #833
Merge pull request #2133 from chooper/histfile-override

override histfile from env - fixes #831 and copies #833