X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=02c11d8aaa85276021ff0396e1e11b819e1f4f81;hb=30282f6ebde53a77cca0fd9a5aa7e66f81a6a17d;hp=4c48269a4e94ceee9d4c7002b2ad1346274dec5c;hpb=ad3991d05644175250250ceedb6b2733e719a0f3;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 4c48269..02c11d8 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3207,31 +3207,6 @@ show-archive() { fi } -# It's shameless stolen from -#f5# Use \kbd{vim} as your manpage reader -vman() { - emulate -L zsh - if (( ${#argv} == 0 )); then - printf 'usage: vman \n' - return 1 - fi - man "$@" | col -b | view -c 'set ft=man nomod nolist' - -} - -# function readme() { $PAGER -- (#ia3)readme* } -#f5# View all README-like files in current directory in pager -readme() { - emulate -L zsh - setopt extendedglob - local files - files=(./(#i)*(read*me|lue*m(in|)ut|lies*mich)*(NDr^/=p%)) - if (($#files)) ; then - $PAGER $files - else - print 'No README files.' - fi -} - # TODO: So, this is the third incarnation of this function!? #f5# Reload given functions refunc() {