zsh: modify code for marks family function