Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-04T00:41:57.000Z (about 2 months ago)
- Last Synced: 2024-12-04T01:25:10.468Z (about 2 months ago)
- Topics: custom, template, zim, zimfw, zsh, zsh-plugin, zsh-plugins
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 3
- Watchers: 2
- 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.