- Copy this file to somewhere (e.g.
~/Better_cd.sh). - Add the following line to your
.bashrc:source ~/Better_cd.sh
- Resource the
.bashrcby executing the command:source ~/.bashrc
cdnow also recordspwdto the.dir_historycdllist the directories you have been to.cdl 20list 20 directories you have been to.cddgo to the last directorycdd 4go to the fourth directory listed bycdl