you ought to read man bash
about how to add functions like mycd
and also about the login process and what does the "linux login file" mean. see here: http://www.thegeekstuff.com/2008/10/...d-bash_logout/
Happy with solution ... mark as SOLVED
If someone helps you, or you approve of what's posted, click the "Add to Reputation" button, on the left of the post.