The configuration file has been split into 5 files:
- aliases: Contains all alias.
- help:
help- Helper function to display description of aliases and scripts. - oh_my_zsh: Configuration file of Oh My Zsh.
- packages: Contains all packages, like fnm (node version manager), rbenv (ruby version manager) and others.
- scripts: Contains bash scripts.
The main .zshrc file only contains the basic configuration and imports the mentioned files.
The aliases and scripts files can use comments in the following format #@<name>#:<description> to display a brief description of the script or alias when the user executes the help command.
Example:
#@dtemp#:Create a random folder temp and move to it
function dtemp {
cd $(mktemp -d)
}