bash,zsh: u and d functions, C for zsh