News for hackers. Stuff that matters.
Re:"j" for switching directories - hacking "cd" with python by cpa on Saturday April 13, 2013 @10:55AM (#5543454)
For a simpler worflow than "j" one can use pushd/popd which are builtin in bash. One can push and pop directories one a stack. It's pretty neat!

$ cd foo1

$ pushd ~/foo2

[do some work]

$ pushd ~/foo3

[do some work]

$ popd

$ pwd

~/foo2

$ popd

$ pwd

~/foo1

Re:"j" for switching directories - hacking "cd" with python by cpeterso on Saturday April 13, 2013 @12:06PM (#5543633)
You can also:

  $ cd -
to jump to the last directory, like popd without the pushd.

I also alias .. to 'cd ..' and ... to 'cd ../..' (and so on).

Re:"j" for switching directories - hacking "cd" with python by izakage on Saturday April 13, 2013 @11:11AM (#5543479)
There's also "dirs" to view the directory stack!
Re:"j" for switching directories - hacking "cd" with python by SoftwareMaven on Saturday April 13, 2013 @01:15PM (#5543851)
pushd without an argument will cycle through the directory stack as well.