zsh: Remove chpwd-readme hook

The hook was never added since the `functions` array was misspelled. I
fixed that and left it turned on the last few days and absolutely hate
it. No idea why I ever thought that this could be nice.
This commit is contained in:
2025-03-10 16:42:38 +01:00
parent 94dfe280f6
commit e956b8955e
2 changed files with 0 additions and 19 deletions

View File

@@ -459,21 +459,6 @@ create_venv() {
fi fi
} }
# Open READMEs in a pager when going into a directory that contains one.
# See 45-hooks.zsh
_page_readme_chpwd_handler() {
local readme
local -a readmes=(README.md README.txt README Readme.md Readme.txt Readme
readme.md readme.txt readme)
for readme in "$readmes[@]"; do
[[ -e "$readme" ]] || continue
${PAGER:-less} "$readme"
break
done
}
# I sometimes find `pgrep` not matching the processes I am searching for, but # I sometimes find `pgrep` not matching the processes I am searching for, but
# `ps aux | grep ...` did not disappoint yet. # `ps aux | grep ...` did not disappoint yet.
psgrep() { psgrep() {

View File

@@ -1,4 +0,0 @@
# vim: ft=zsh
(( ! $+function[_page_readme_chpwd_handler] )) \
|| add-zsh-hook chpwd _page_readme_chpwd_handler