A smart cd replace.
- Run git clone to get the code
- Edit Makefile, change the install dir to the real target.
- Run make to build and install goto
- Run source goto.sh to make sure it work, or directly add the following line to your ~/.bashrc
source
$(bindir)/goto.sh $ (bindir) is where goto.sh is placed.
ga: add current dir to the goto history.
gd: del current dir from the goto history.
gl: show the goto history.
gc: clear the goto history.
g dir: goto a directory, dir can be any part of the goto history, or a real directory. Use tab can auto complete the result.