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.
This commit is contained in:
parent
6a7f432e33
commit
cd0ec0c563
2
hooks
2
hooks
|
|
@ -3,7 +3,7 @@ for file in $(find $ZDOTDIR/hooks.d -type f); do
|
||||||
source "$file"
|
source "$file"
|
||||||
done
|
done
|
||||||
|
|
||||||
add-zsh-hook -Uz chpwd glow
|
add-zsh-hook -Uz chpwd _hook_glow
|
||||||
add-zsh-hook -Uz chpwd osc7
|
add-zsh-hook -Uz chpwd osc7
|
||||||
add-zsh-hook -Uz precmd termtitle
|
add-zsh-hook -Uz precmd termtitle
|
||||||
add-zsh-hook -Uz precmd osc113
|
add-zsh-hook -Uz precmd osc113
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
## Load readme with glow (if available)
|
## Load readme with glow (if available)
|
||||||
glow() {
|
_hook_glow() {
|
||||||
has glow || return 0
|
has glow || return 0
|
||||||
find $PWD -maxdepth 1 -iname 'readme.md' -exec glow {} \;
|
find $PWD -maxdepth 1 -iname 'readme.md' -exec glow {} \;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user