X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=53feb02fc00e33977f8c46e718e7de43b8098978;hb=a482f87e85f65c3dd9d290e897cddbf3e8871714;hp=4fef3319acf53344f6dbda7bb0d0698dfeac7f04;hpb=3ff24c26824bafb88fb6f1be05f63ac5afe307de;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 4fef331..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,22 +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))}} -} - -# http://strcat.de/blog/index.php?/archives/335-Software-sauber-deinstallieren...html -#f5# Log 'make install' output -mmake() { - emulate -L zsh - [[ ! -d ~/.errorlogs ]] && mkdir ~/.errorlogs - make -n install > ~/.errorlogs/${PWD##*/}-makelog -} - # highlight important stuff in diff output, usage example: hg diff | hidiff #m# a2 hidiff \kbd{histring} oneliner for diffs check_com -c histring && \