delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/14/17:30:32

X-Spam-Check-By: sourceware.org
Date: Sat, 14 Jul 2007 17:30:20 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Directory Aliasing
Message-ID: <20070714213020.GA19268@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <11596212 DOT post AT talk DOT nabble DOT com>
MIME-Version: 1.0
In-Reply-To: <11596212.post@talk.nabble.com>
User-Agent: Mutt/1.5.15 (2007-04-06)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Sat, Jul 14, 2007 at 11:33:30AM -0700, LittleTim wrote:
>Hello Everybody:
>
>I don't have a lot of experience using Cygwin:
>
>Problem:  I do a lot of work in a directory with a long path name: C:\very
>long path name\My Work
>
>Question:  Instead of having to type cd  C:\very long path name\My Work
>everytime I want to switch to this directory, is there any way to do
>aliasing?  For example, no matter where I am in the file system, typing cd ~
>will take me to my home directory.  I've tried to create a symbolic link. 
>Of course the symbolic link is only valid in the directory where the
>symbolic link exists, and not from anywhere in the file system.

mkdir /shortdir
mount -b 'c:\very long path name\My Work' /shortdir
cd /shortdir

cgf

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019