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

@@ -2,6 +2,8 @@ autoload -U select-word-style && select-word-style bash
autoload edit-command-line; zle -N edit-command-line
autoload -U add-zsh-hook
(( ! $+aliases[run-help] )) || unalias run-help
autoload -Uz run-help run-help-git zmv