zsh-config/hooks.d/glow
Robert Morrison cd0ec0c563
fix(hooks): Fix glow hook overriding glow command
Fix the issue where as the glow hook was called glow it would be called
instead of the command glow.
2024-02-19 14:57:25 +00:00

8 lines
155 B
Bash

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