zsh: implement new bd