News for hackers. Stuff that matters.
Re:Don't waste your time by cd-ing in the terminal by sjs on Friday February 18, 2011 @08:11PM (#2237990)
Or in zsh:

    setopt cdablevars
    nm=/path/to/whatever
    cd nm
Re:Don't waste your time by cd-ing in the terminal by irfn on Saturday February 19, 2011 @05:41AM (#2238846)
you can put this in ~/.zshrc for persistent zsh bookmarks

  touch ~/.zshmarks && source ~/.zshmarks
  function b() {
    echo "hash -d $1=\"`pwd`\"" >> ~/.zshmarks && source ~/.zshmarks
  }
Re:Don't waste your time by cd-ing in the terminal by spicycode on Saturday February 19, 2011 @11:01AM (#2239221)
or you could just put some paths on your cdpath and enable autocd.
Re:Don't waste your time by cd-ing in the terminal by irfn on Saturday February 19, 2011 @05:43AM (#2238848)
and then you just cd by typing ~bookmark
Re:Don't waste your time by cd-ing in the terminal by unfletch on Saturday February 19, 2011 @12:02AM (#2238439)
in Bash, change the first line to:

    shopt -s cdable_vars
Re:Don't waste your time by cd-ing in the terminal by _b8r0 on Saturday February 19, 2011 @05:18AM (#2238828)
in Bash you don't even need to do that, just do:

    foo=/etc/
    cd $foo