Extract shell history config