On 04 September 2007 15:34, Reid Thompson wrote: > On Tue, 2007-09-04 at 07:03 -0700, gms5002 wrote: >> Thanks for the reply Steve. What I am actually trying to achieve here is >> to be able to access a certain folder (say C:\foo\bar) by typing cd /bar >> at the command prompt.
> echo 'alias cdbar="cd /cygdrive/foo/bar"' >> .bashrc Ok, that does literally what he asked for (except not quite literally, since "cdbar" and "cd /bar" aren't literally the same, and also you meant to say "/cygdrive/c/foo/bar", not "/cygdrive/foo/bar"), but I think we can assume that he also wants to be able to write "ls /bar" and "pushd /bar" and "touch /bar/baz/quux" and have them all work. It's a very limited solution. The most meaningful other solution would have been something like ln -s /cygdrive/c/foo/bar /bar cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/