zshrc: add mcd function, history handling cleanup