Two word aliases in zsh

It's easy to make a single-word alias in ZSH.

alias ll='ls -lah' 

Is there a way to make two word aliases with Zsh, so that both words are parsed as part of the same alias? Basically, I would like to use it for typo corrections.

 alias 'gits t'='git st' 
+7
source share
1 answer

Try the following:

 alias func='gits t' func() { 'gits t'='git st' } 

More information about the features of the Zsh alias :

+5
source

All Articles