atuin/hook.zsh

8 lines
114 B
Bash
Raw Normal View History

2020-10-04 18:00:55 -06:00
# Source this in your ~/.zshrc
2021-02-13 05:58:40 -07:00
_atuin_preexec(){
atuin history add $1
2020-10-04 18:00:55 -06:00
}
2021-02-13 05:58:40 -07:00
add-zsh-hook preexec _atuin_preexec