OhMyZsh: override Git plugin aliases with custom multi-line aliases / functions
问题 tl;dr - I want to override OhMyZsh's Git aliases with multi-line aliases / functions. I'm trying to make the switch over from bash to zsh and migrate my aliases. I'm able to override Git aliases from OhMyZsh via this (example): alias grs="git restore --staged ." However, when I try to use zsh functions (for aliases that already exist in OhMyZsh): grs() { if [ $# -eq 0 ] then git restore --staged . else git restore --staged "$@" fi } it results in this error: /Users/StevenChoi/.aliases/.zsh