Technologies Used



  • First Released: January 15, 2022
  • Latest Update:

way is a CLI tool that I made for finding the absolute path for a subdirectory from a certain path so that I can CD to it easily. If you have golang installed, you can build the directory then place its path into your bash/zsh/etc. profile under the path directory so you can call it everywhere.

There are three possible flags:

  • -l – int; limit how many results are retrieved. Default: -1 (infinite)
  • -w – string; set the base directory. Default: current working directory
  • -r – bool; retrieve relative paths instead of absolute paths. Default: false

An example:

way -r -l 5 -w /User/me node_modules