enhancd
.
The next generation of change directory with peco
cd
command is one of the frequently used commands. Nevertheless, it is very inconvenient. cd
interpret path (/home/john/dir1
, ../../dir2
) only. cd
does not accept the directory name (dir3
). The new cd
command I have to hack interpret this. Take the log every time that you want to move, and to complement the directory path based on that log.
DEMO:
- Replace the existing
cd
command. - It is possible to go to the directory where you have visited in the past.
- If a directory name is duplicated, it can be selected interactively with peco.
- If the argument is not given, it is possible to select the directory where you want to go.
- Combine with
ghq
andpeco
. - Work on Bash ans Zsh
$ cd <directory>
$ git clone https://github.com/b4b4r07/cdinterface
$ source cdinterface/cdinterface.sh
BABAROT a.k.a. b4b4r07