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)
12 lines
287 B
Bash
12 lines
287 B
Bash
#This file manages hooks so I can have multiple functions hooked the way I want
|
|
for file in $(find $ZDOTDIR/hooks.d -type f); do
|
|
source "$file"
|
|
done
|
|
|
|
add-zsh-hook -Uz chpwd glow
|
|
add-zsh-hook -Uz chpwd osc7
|
|
add-zsh-hook -Uz precmd termtitle
|
|
add-zsh-hook -Uz precmd osc113
|
|
|
|
# vim: ft=zsh
|