News for hackers. Stuff that matters.
Re:J: an alternative to cd that learns where you spend time by truebosko on Wednesday February 18, 2009 @08:40AM (#485709)
Ok, I feel like an idiot. When it says "source this into your .bashrc" what does it mean?

I know where .bashrc is, but simply pasting it into the file seems like .. the wrong way to do it. Couldn't really find an answer on Google

Re:J: an alternative to cd that learns where you spend time by inky on Wednesday February 18, 2009 @09:32AM (#485777)
Add a line to the end of your ~/.bashrc file with:

    . $HOME/.bash/j.sh
(Change that path to point to wherever j.sh is, though ~/.bash is probably a good place for it.)
Re:J: an alternative to cd that learns where you spend time by truebosko on Wednesday February 18, 2009 @09:57AM (#485800)
Thanks so much! Makes sense
Re:J: an alternative to cd that learns where you spend time by parenthesis on Wednesday February 18, 2009 @09:25AM (#485772)
I think what is referred to is bash's source command: when you've modified your .bashrc and you want the changes to be reflected in your current shell process, you do

  source .bashrc
or, equivalently

  . .bashrc
which runs .bashrc in the current shell, as opposed to in a forked subshell as happens if you did ./.bashrc ; and hence the new functions/aliases/variable settings you've put in .bashrc are now available in the current shell (as opposed to only being visible in a forked subshell and disappearing when it exits).
Re:J: an alternative to cd that learns where you spend time by truebosko on Wednesday February 18, 2009 @09:58AM (#485801)
Now it's clearer, thank you! :)