X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=53feb02fc00e33977f8c46e718e7de43b8098978;hb=a482f87e85f65c3dd9d290e897cddbf3e8871714;hp=fa81477c36663e0125d22b4c0460e7c14be91216;hpb=baa1bccd1a77009a393ca2c258d51901ec289002;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index fa81477..53feb02 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3368,24 +3368,6 @@ mkiso() { mkisofs -o ~/$iso -A $volume -allow-multidot -J -R -iso-level 3 -V $volume -R $files } -#f5# Simple thumbnails generator -genthumbs() { - rm -rf thumb-* index.html - echo " - - - Images - - " > index.html - for f in *.(gif|jpeg|jpg|png) ; do - convert -size 100x200 "$f" -resize 100x200 thumb-"$f" - echo " " >> index.html - done - echo " - -" >> index.html -} - #f5# Set all ulimit parameters to \kbd{unlimited} allulimit() { ulimit -c unlimited @@ -3397,14 +3379,6 @@ allulimit() { ulimit -t unlimited } -#f5# RFC 2396 URL encoding in Z-Shell -urlencode() { - emulate -L zsh - setopt extendedglob - input=( ${(s::)1} ) - print ${(j::)input/(#b)([^A-Za-z0-9_.!~*\'\(\)-])/%${(l:2::0:)$(([##16]#match))}} -} - # highlight important stuff in diff output, usage example: hg diff | hidiff #m# a2 hidiff \kbd{histring} oneliner for diffs check_com -c histring && \