Hacker News new | ask | show | jobs
by irfn 5592 days ago
you can put this in ~/.zshrc for persistent zsh bookmarks

  touch ~/.zshmarks && source ~/.zshmarks
  function b() {
    echo "hash -d $1=\"`pwd`\"" >> ~/.zshmarks && source ~/.zshmarks
  }
2 comments

or you could just put some paths on your cdpath and enable autocd.
and then you just cd by typing ~bookmark