Skip to content
1 min read

oh-my-zsh plugins without the aliases

Using oh-my-zsh's plugins brings numerous aliases, many of which may remain unused, like the roughly 50 in the git plugin; to prevent these from loading, alias 'alias' to 'true' before sourcing oh-my-zsh, and then unalias it.

oh-my-zsh is great and all --- but the plugins very liberally include aliases of which I never use any. Take a look at the git plugin which contains a about 50 aliases on its own.

To unbundle all these aliases I alias alias to true which prevents any bundled aliases from loading.

alias alias="true"
source $ZSH/oh-my-zsh.sh
unalias "alias"