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.
$ cd foo1
$ pushd ~/foo2
[do some work]
$ pushd ~/foo3
[do some work]
$ popd
$ pwd
~/foo2
$ popd
$ pwd
~/foo1