7 ezz is the edit helper program for the generic zz clip board program.
8 The clip board is \$ZZ (default: \$HOME/.zz). Options and modes are:
11 "... | ezz" write STDIN from pipe to \$ZZ and call editor
12 "... | ezz +" add STDIN from pipe to \$ZZ and call editor
13 "ezz 'perl-script'" run perl-script on \$ZZ
14 "ezz - 'perl-script'" run perl-script on \$ZZ and write result to STDOUT
15 "ezz filter [args]" run filter [with args] on \$ZZ
16 "ezz - filter [args]" run filter [with args] on \$ZZ and write result to STDOUT
17 "ezz -r" restore \$ZZ from last ezz operation (\$ZZ~)
26 Limitation: zz does not work across different accounts!
30 JEDINIT="SAVE_STATE=0"; export JEDINIT
33 if [ x"$1"x = x+x ]; then
41 test -z "$1" && exec ${EDITOR:-vi} $ZZ
45 X-r) exec mv $ZZ~ $ZZ;;
49 test "X$OUT" = X- && shift
50 test -z "$1" && exec cat $ZZ
52 case `type "$1" 2>&1` in
53 *not\ found) perl -pe "$@" <$ZZ~>$ZZ || mv $ZZ~ $ZZ;;
54 *) "$@" <$ZZ~>$ZZ || mv $ZZ~ $ZZ;;
56 test "X$OUT" = X- && exec cat $ZZ