NAME

word_expansion.pl - example source script

DESCRIPTION

This script demonstrates how you can add an expansion to zoid's parser. It can be sourced from within zoid with the source builtin. You can also put this code in your ~/.zoidrc.

The specific expansion implemented here replaces a word starting with a '=' with the output of the 'which' command. For example:

        zoid$ ls -l =ls
        -rwxr-xr-x  1 root root 70204 2004-12-16 07:55 /bin/ls

This expansion seems to be a feature of zsh, put this code in your ~/.zoidrc if you like it.

AUTHOR

Jaap Karssenberg, <pardus@cpan.org>