On 05/29/2010 03:34 AM, David Haller wrote:
Even better: use pushd/popd to change dirs. You should already have '-' as an alias for popd. And I have '+' aliased to pushd. And neither aliases are in my ~/.alias. AFAIK, both are standard on SUSE and not some of my homespun stuff ;) And that's on a ex-SUSE 6.2! And I've not noticed it not working on the 11.2 on the new box.
So, you can use '+ SOME_PATH' / '-' to navigate ;)
Try shorten that, buster! ;P
HTH, -dnh, who actually doesn't use pushd/popd much, but 'cd SOME_PATH' / 'cd -'. On purpose, just because I don't much work that way, not because I don't like it. Usually, I just open a new xterm anyway for a task (who cares about one more, if you already have 10 running anyway? ;)
I like the '-', but I still haven't figured out the '+'. I mean I've confirmed what it does and how it works: david@alchemy[]: /var/log (0)$ david@alchemy[]: /var/log (0)$ dirs -v 0 /var/log 1 ~ david@alchemy[]: /var/log (0)$ + /var/log /var/log ~ david@alchemy[]: /var/log (0)$ cd /usr/share/ssl/misc/ david@alchemy[]: /usr/share/ssl/misc (0)$ + /usr/share/ssl/misc /usr/share/ssl/misc /var/log ~ david@alchemy[]: /usr/share/ssl/misc (0)$ - /usr/share/ssl/misc /var/log ~ david@alchemy[]: /usr/share/ssl/misc (0)$ - /var/log ~ david@alchemy[]: /var/log (0)$ + /var/log /var/log ~ david@alchemy[]: /var/log (0)$ cd david@alchemy[]: ~ (0)$ - /var/log ~ david@alchemy[]: /var/log (0)$ cd david@alchemy[]: ~ (0)$ dirs -v 0 ~ 1 ~ david@alchemy[]: ~ (0)$ - ~ david@alchemy[]: ~ (0)$ But remembering to pushd '+' any directory I need to come back to, seem like something that I would forget to do a lot ;-) -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org