prezto/modules/helper
Kaspar Vollenweider f4ca9ebfc9 feat(helper): add os-type helper functions
Add the following functions:

- is-darwin
- is-linux
- is-bsd
- is-cygwin

And apply them everywhere I found code doing that what these functions do.
2020-03-19 11:49:11 -07:00
..
functions Only one newline at end of file 2014-10-09 23:38:15 -04:00
README.md Only one newline at end of file 2014-10-09 23:38:15 -04:00
init.zsh feat(helper): add os-type helper functions 2020-03-19 11:49:11 -07:00

README.md

Helper

Provides helper functions for developing modules.

Functions

  • add-zsh-trap adds a function name to a list to be called when a trap is triggered.
  • 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.

Authors

The authors of this module should be contacted via the issue tracker.