2012-09-08 23:21:00 +00:00
|
|
|
Helper
|
|
|
|
======
|
2012-06-12 19:35:47 +00:00
|
|
|
|
2012-09-08 23:21:00 +00:00
|
|
|
Provides helper functions for developing modules.
|
2012-06-12 19:35:47 +00:00
|
|
|
|
|
|
|
Functions
|
|
|
|
---------
|
|
|
|
|
|
|
|
- `add-zsh-trap` adds a function name to a list to be called when a trap is
|
|
|
|
triggered.
|
2012-09-08 23:21:00 +00:00
|
|
|
- `is-autoloadable` checks if a file can be autoloaded by trying to load it
|
|
|
|
in a subshell.
|
|
|
|
- `is-callable` checks if a name is a command, function, or alias.
|
|
|
|
- `is-true` checks a boolean variable for "true".
|
|
|
|
- `coalesce` prints the first non-empty string in the arguments array.
|
2021-05-02 06:00:06 +00:00
|
|
|
- `is-darwin` checks if running on macOS Darwin.
|
|
|
|
- `is-linux` checks if running on Linux.
|
|
|
|
- `is-bsd` checks if running on BSD.
|
|
|
|
- `is-cygwin` checks if running on Cygwin (Windows).
|
|
|
|
- `is-termux` checks if running on Termux (Android).
|
2012-06-12 19:35:47 +00:00
|
|
|
|
|
|
|
Authors
|
|
|
|
-------
|
|
|
|
|
|
|
|
*The authors of this module should be contacted via the [issue tracker][1].*
|
|
|
|
|
|
|
|
- [Sorin Ionescu](https://github.com/sorin-ionescu)
|
|
|
|
|
2012-09-03 20:08:39 +00:00
|
|
|
[1]: https://github.com/sorin-ionescu/prezto/issues
|