ENV variable for history and function and mkdircd function