new-words
annotate misc/nw-shell @ 56:6d6655d4cab6
new-words.pl stub removed
author | Igor Chubin <igor@chub.in> |
---|---|
date | Thu Nov 03 16:01:53 2011 +0100 (2011-11-03) |
parents | |
children |
rev | line source |
---|---|
igor@46 | 1 TEMP=`mktemp /tmp/nw-shell-XXXXXX` |
igor@46 | 2 ~/hg/new-words/new-words-py.sh -n -l de "$1" | grep -v '^#' > "$TEMP" |
igor@46 | 3 rlwrap -f "$TEMP" sh -c ' |
igor@46 | 4 while true; |
igor@46 | 5 do |
igor@46 | 6 printf "\033[01;33m > " ; |
igor@46 | 7 read word options || { exit; printf "\033[00m" ; } ; |
igor@46 | 8 printf "\033[00m" ; |
igor@46 | 9 de $word; |
igor@46 | 10 done' |
igor@46 | 11 rm $TEMP |