dirabbrev - Using abbreviations for long directory paths

dirabbrev is written in Perl and requires version 5.003 or higher. You can have a look at the dirabbrev man page or grab the complete program (which contains the man page in POD format).