From 2c7a56cee91cdcb62f2a30ca2a6c5e5637ca74a4 Mon Sep 17 00:00:00 2001 From: nyukuru Date: Fri, 28 Mar 2025 00:56:55 -0400 Subject: [PATCH] nixos/foot: fix zshrc Fixes error 'command not found: add-zsh-hook' --- nixos/modules/programs/foot/zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/programs/foot/zshrc b/nixos/modules/programs/foot/zshrc index a1d652a80ca4..043db42e2838 100644 --- a/nixos/modules/programs/foot/zshrc +++ b/nixos/modules/programs/foot/zshrc @@ -8,7 +8,6 @@ function osc7-pwd() { function chpwd-osc7-pwd() { (( ZSH_SUBSHELL )) || osc7-pwd } -add-zsh-hook -Uz chpwd chpwd-osc7-pwd precmd() { print -Pn "\e]133;A\e\\" @@ -23,3 +22,6 @@ function precmd { function preexec { print -n "\e]133;C\e\\" } + +autoload -U add-zsh-hook +add-zsh-hook -Uz chpwd chpwd-osc7-pwd