News for hackers. Stuff that matters.
Re:How to navigate directories faster with Bash (2015) by kkoncevicius on Thursday April 22, 2021 @06:59AM (#26901312)
Here is one additional bookmark solution [1]:

    export CDPATH=.:~/.marks/

    function mark {
      ln -sr "$(pwd)" ~/.marks/"$1"
    }

    mark @name      # create a bookmark
    cd @name        # jump to bookmark
    cd @<tab>       # list bookmarks
    cd @n<tab>      # auto-complete
    cd @name/<tab>  # can access sub-directories within bookmarks
Works best when bookmarks are prefixed by "@" or other special symbol. Additional advantage is that you can use the same function `cd` to navigate both bookmarked and regular directories.

[1]: http://karolis.koncevicius.lt/posts/fast_navigation_in_the_c...

Re:How to navigate directories faster with Bash (2015) by m3ta4a on Thursday April 22, 2021 @03:47PM (#26907313)
Might be worth pointing out the author of the post you linked settled in the end on `cd` and `ls` in a different style of organization over bookmarks or `z` or any other tool.
Re:How to navigate directories faster with Bash (2015) by aasasd on Thursday April 22, 2021 @10:41AM (#26903293)
Pretty sure this would change into the symlinks, not the linked directories. I.e. the $PWD would be under `~/.marks/`.
Re:How to navigate directories faster with Bash (2015) by kkoncevicius on Thursday April 22, 2021 @10:51AM (#26903427)
Personally - never noticed a problem, but should be easy to solve just in case:

    alias cd="cd -P"
Re:How to navigate directories faster with Bash (2015) by _def on Thursday April 22, 2021 @01:45PM (#26905605)
I have seen many solutions like this but this one is by far the most lightweighted. Thank you for sharing.
Re:How to navigate directories faster with Bash (2015) by sandreas on Thursday April 22, 2021 @07:33AM (#26901542)
This is AWESOME. Thank you.