https://github.com/zimfw/custom
Template for custom module.
https://github.com/zimfw/custom
custom template zim zimfw zsh zsh-plugin zsh-plugins
Last synced: 5 months ago
JSON representation
Template for custom module.
- Host: GitHub
- URL: https://github.com/zimfw/custom
- Owner: zimfw
- License: mit
- Created: 2017-12-04T18:46:41.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-12-04T00:41:57.000Z (about 1 year ago)
- Last Synced: 2025-04-13T12:13:08.940Z (9 months ago)
- Topics: custom, template, zim, zimfw, zsh, zsh-plugin, zsh-plugins
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
custom
======
Add custom code to the `init.zsh` file.
Custom functions can go in the `functions` subdirectory, where the name of the
file is the name of the function. These functions will be lazy loaded.
For example, this function:
```zsh
foo() {
print bar
}
```
will become a lazy loaded function if created as a file named `foo` in the
`functions` subdirectory, containing:
```zsh
print bar
```
There is a special kind of function that can also be added to the `functions`
subdirectory: completion definitions that will be loaded by `compinit`. These
must have file names starting with `_`.
Having an `init.zsh` file or functions inside the `functions` subdirectory are
both optional. You can have one, the other, or both.