mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
nixos/foot: fix zshrc
Fixes error 'command not found: add-zsh-hook'
This commit is contained in:
parent
d19e76a70f
commit
2c7a56cee9
1 changed files with 3 additions and 1 deletions
|
@ -8,7 +8,6 @@ function osc7-pwd() {
|
||||||
function chpwd-osc7-pwd() {
|
function chpwd-osc7-pwd() {
|
||||||
(( ZSH_SUBSHELL )) || osc7-pwd
|
(( ZSH_SUBSHELL )) || osc7-pwd
|
||||||
}
|
}
|
||||||
add-zsh-hook -Uz chpwd chpwd-osc7-pwd
|
|
||||||
|
|
||||||
precmd() {
|
precmd() {
|
||||||
print -Pn "\e]133;A\e\\"
|
print -Pn "\e]133;A\e\\"
|
||||||
|
@ -23,3 +22,6 @@ function precmd {
|
||||||
function preexec {
|
function preexec {
|
||||||
print -n "\e]133;C\e\\"
|
print -n "\e]133;C\e\\"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
autoload -U add-zsh-hook
|
||||||
|
add-zsh-hook -Uz chpwd chpwd-osc7-pwd
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue