changing "cd" command in Linux the way I want.....

Mar 31, 2010 20:20

Prob definition:
My /home/omap2430 directory contains all linux source folders. If I go to that folder and try to build any linux kernel, it always means that I want to build them for ARM architecture and with some Cross Compiler...... As of now, for this I am exporting some variables.... I am doing this manually..... Now I want this to be automated..... so use cases are

1. As soon as I do, cd ./omap2430 or cd /home/omap2430 or I enter to omap2430 directory, my variables should be exported automatically.
2. As soon as I leave that direcotry, all MY exported variables should be unset....

HINT: cd is a bash-builtin command
Did it in 33 minutes...........

bash, linux, cd

Previous post Next post
Up