simplify zsh setup, add gcm function
fix function syntax