take: fix computation of line numbers, zsh: fix delete binding and alias history