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:
@@ -459,21 +459,6 @@ create_venv() {
|
||||
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
|
||||
# `ps aux | grep ...` did not disappoint yet.
|
||||
psgrep() {
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
# vim: ft=zsh
|
||||
|
||||
(( ! $+function[_page_readme_chpwd_handler] )) \
|
||||
|| add-zsh-hook chpwd _page_readme_chpwd_handler
|
||||
Reference in New Issue
Block a user