[shell] Add docker env variable, fixed problem with history search in
mac