X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_share_grml%2Fzsh%2Ffunctions%2Freadme;fp=usr_share_grml%2Fzsh%2Ffunctions%2Freadme;h=54001138827f1ec875dbea2f26aa3cf2a187173a;hb=f1005a112b5cb847d70593235f65f3901a23f48c;hp=0000000000000000000000000000000000000000;hpb=ad3991d05644175250250ceedb6b2733e719a0f3;p=grml-etc-core.git diff --git a/usr_share_grml/zsh/functions/readme b/usr_share_grml/zsh/functions/readme new file mode 100644 index 0000000..5400113 --- /dev/null +++ b/usr_share_grml/zsh/functions/readme @@ -0,0 +1,11 @@ +# View all README-like files in current directory in pager +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