Hacker News new | ask | show | jobs
by hackerpolicy 4846 days ago
If you work with something like this

  /this/is/some/very/nested/directory/
and you need to move to almost the same structure

  /this/be/some/very/nested/directory/
then you might benefit from

  function bcd {
    cd ${PWD/$1/$2}
  }