delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/26/00:44:57

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,TW_YG,T_TO_NO_BRKTS_FREEMAIL,URI_BLOGSPOT
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <AANLkTim0E5ZLwC5R52DSzT159uU_thh3L_vd7778DrdY@mail.gmail.com>
References: <AANLkTin=Katc0Tf4zn3CH=NPds5J6QkQk3BzUQTXz92E AT mail DOT gmail DOT com> <AANLkTim0E5ZLwC5R52DSzT159uU_thh3L_vd7778DrdY AT mail DOT gmail DOT com>
Date: Sun, 26 Sep 2010 14:44:45 +1000
Message-ID: <AANLkTikx+OawW0bYgHPsPdOuHRWGJCN4BdCY2aW-BTfP@mail.gmail.com>
Subject: Re: cdargs usage
From: Robert Mark <robertmarkbram DOT lists AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
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

Hi All,

> Well, I worked out this much thanks to man cdargs:
>
> I can construct my own functions to "mark" a cdargs directory and then
> "cdb" into it.
>
> function cdb() {
> =A0 cdargs "$1" && cd "`cat "$HOME/.cdargsresult"`" ;
> }
>
> function mark() {
> =A0 cdargs --add=3D:$1:` cygpath -u -a .`
> }
>
> cd /blah/blah
> mark blah
> cdb blah

For more detail, I wrote up my experiences here:
http://robertmarkbramprogrammer.blogspot.com/2010/09/using-cdargs-in-cygwin=
.html

Rob
:)

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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