X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=e870f70672a728c1872ff0fefcd8db7498bbd7b7;hb=131bf4df8e1a85dc34decdbd7e07d5bb2fb6df97;hp=e1b8615e1293c146d46dab430074051524c81571;hpb=aabb0870c2f64b4441627d8454aa6288589d2c96;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index e1b8615..e870f70 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2832,25 +2832,6 @@ limg() { fi } -#f5# Create PDF file from source code -makereadable() { - emulate -L zsh - output=$1 - shift - a2ps --medium A4dj -E -o $output $* - ps2pdf $output -} - -# zsh with perl-regex - use it e.g. via: -# regcheck '\s\d\.\d{3}\.\d{3} Euro' ' 1.000.000 Euro' -#f5# Checks whether a regex matches or not.\\&\quad Example: \kbd{regcheck '.\{3\} EUR' '500 EUR'} -regcheck() { - emulate -L zsh - zmodload -i zsh/pcre - pcre_compile $1 && \ - pcre_match $2 && echo "regex matches" || echo "regex does not match" -} - #f5# List files which have been accessed within the last {\it n} days, {\it n} defaults to 1 accessed() { emulate -L zsh