zsh: Add _page_readme_chpwd_handler()

Open READMEs in a pager when going into a directory that contains one.
This commit is contained in:
2022-02-07 04:22:32 +01:00
parent 17433d0528
commit a14478f758
3 changed files with 21 additions and 0 deletions

View File

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