Josef Oswald wrote: > Well while searching something else, I saw once a very neat alias for > cd. > > with this alias one was/is able to change into another directory without > first typing _cd.._ and then _cd_new_directory. > > so far I can remember the alias was like this > > alias cd ="cd .. && " but not much further. > > Anyone using something like this? The preferred method for this behaviour would be to run: export CDPATH=".:.." Example: enoch:/root # ls Old bin var enoch:/root # cd bin enoch:/root/bin # cd var -bash: cd: var: No such file or directory enoch:/root/bin # CDPATH=.:.. enoch:/root/bin # cd var /root/var enoch:/root/var # -- Paul <http://paulgear.webhop.net> -- Tired of paying $600 for Microsoft Office? Running an illegal copy and want to make it legal? Try OpenOffice.org! It's free and does most of the things Microsoft Office does. <http://www.openoffice.org>
Attachment:
signature.asc
Description: OpenPGP digital signature