fixe gp function for zsh