I usually create a shell script called something like 'mycd', which I can pass parameters to.
Something like this:
# Shell script to CD into various locations.
if [ "$1" == "myhome" ] ; then cd ~;
elif [ "$1" == "mypref" ] ; then cd ~/Library/Preferences;
elif [ "$1" == "mylib" ] ; then cd ~/Library;
elif [ "$1" == "syslib" ] ; then cd /System/Library;
elif [ "$1" == "--help" ] ; then
echo "Usage: $0 location, which can be one of"
echo "myhome = My home dir."
echo "mypref = My Preferences dir."
echo "mylib = My Libraries dir."
echo "syslib = System library."
echo "--help = Show this message."
else echo "$0: $1 not known.";
fi
And then in the alias file, put an entry like:
alias mycd='. /path/to/mycd'
Then I can just call it with something like mycd mylib
and it will take me straight there.
Similar to the list of aliases mentioned above, but this collects them all in one place and it gives help text if I need to be reminded what places I've stored.