zsh-config/hooks.d/glow
Robert Morrison 9da7b6babf
refactor: Change the way that all hooks work
Move hooks to a dedicated module.
This allows for greater flexibility and easier editing.

TODO: Make hook handling neater (possibly through parsing the hook
	script to read an "hook-to" marker that allows for automated
	loading of properly formatted hook functions)
2023-04-11 22:45:38 +01:00

8 lines
149 B
Bash

## Load readme with glow (if available)
glow() {
has glow || return 0
find $PWD -maxdepth 1 -iname 'readme.md' -exec glow {} \;
}
## vim: ft=zsh