I recently learned how to define custom aliases for Oh My Zsh thanks to this article.
Here is how it works. Oh My Zsh has a special directory as defined in $ZSH_CUSTOM
(defaults to ~/.oh-my-zsh/custom
). Files in this directory will be loaded automatically by the init script.
# Create a new file for your aliases
touch $ZSH_CUSTOM/aliases.zsh
# Add a new alias
echo "alias say_hello='echo \"hello world\"'" >> $ZSH_CUSTOM/aliases.zsh
# reload config in current session
source ~/.zshrc
May you spent less time typing and more time building.