I was looking at this quick bash tip and found that there is a better way to create aliases, than what is mentioned in the article:
function z(){
varName=$1
cwd=`pwd`
eval alias $varName=”cd\ $cwd”
}
so, its usage will then become, say, “z webd” which will take the current dir and assign an alias webd to cd to it. Instead of remembering g1, g2 etc., we can remember the aliases with meaningful names. What do you think?