Changing directory more efficiently
Less Typing Changing Directory (cd)
Inspired by acd_func.sh, ltcd provides the following features to make life easier:
cd dir
or cd ar
to go to /path/to/foo/bar/directory/).Doing the following should NOT spoil your existing environment - You will have:
In ~/.bashrc:
h
.cd
/cdrm
/cdedit
will be ready for use. The command cd
is an alias of cd_func
. The script ltcd uses the command cxpgrep
.cd -?
brings up global dir list.cd --
brings up local dir list.cd $word
for free jumping - ‘word’ is any part of the FULL path of the dir to go.cd -
brings you back to the previous dir.cdrm
to remove invalid entries in global bookkeeping. Invalid entries are removed/renamed/inaccessible dirs.cdedit
in case you want to edit the global bookkeeping. For example, if you feel some dirs with “tmp” in the path name are not useful to stay in the record, you can manually remove them with this command.The files created by ltcd are all at ~/.cd/ for cleanness and debugging purposes.
This software (ltcd) is distributed under the MIT license.