View Code? Open in Web Editor
NEW
A better cd command allows the user to go to history paths.
License: GNU General Public License v3.0
better-cd's Introduction
- Copy this file to somewhere (e.g.
~/Better_cd.sh
).
- Add the following line to your .bashrc:
- Resource the .bashrc by executing the command:
cd
now also records pwd
to the .dir_history
cdl
list the directories you have been to.
cdl 20
list 20 directories you have been to.
cdd
go to the last directory
cdd 4
go to the fourth directory listed by cdl
better-cd's People
Contributors
Watchers