cd -1, -2, -3 etc in Z shell

后端 未结 3 583
心在旅途
心在旅途 2021-01-31 04:58

How do you set up the Z shell such that typing cd - gives you a list of previously visited paths, and cd -1, -2, -3, etc. will then take you to the directories?

3条回答
  •  梦如初夏
    2021-01-31 05:18

    c- minus is designed for this kind of requirement.

    It support regex match, using md5 hash to void duplication in pushd.

    Easily to dump and load.

    This gif shows some basic operations.

    you can check it out on https://github.com/whitebob/cminus

提交回复
热议问题