Re: cd to directory in paste buffer : shell function

2006-01-13 Thread zzapper
On Fri, 13 Jan 2006 14:02:40 -0500, wrote: >On Fri, Jan 13, 2006 at 01:51:11PM -0500, Igor Peshansky wrote: >>On Fri, 13 Jan 2006, zzapper wrote: >> >>> Hi, >>> >>> I often want to cd to a (DOS) path that I've copied from some Windows sh proof >>> >>> function cdp() >>> { >>> # cdp(aste) >>> # de

Re: cd to directory in paste buffer : shell function

2006-01-13 Thread Christopher Faylor
On Fri, Jan 13, 2006 at 01:51:11PM -0500, Igor Peshansky wrote: >On Fri, 13 Jan 2006, zzapper wrote: > >> Hi, >> >> I often want to cd to a (DOS) path that I've copied from some Windows >> App. >> >> The following function (put in one of your startup files .bashrc >> .profile etc) saves a few clic

Re: cd to directory in paste buffer : shell function

2006-01-13 Thread Igor Peshansky
On Fri, 13 Jan 2006, zzapper wrote: > Hi, > > I often want to cd to a (DOS) path that I've copied from some Windows > App. > > The following function (put in one of your startup files .bashrc > .profile etc) saves a few clicks and is forward or backslash proof > > function cdp() > { > # cdp(aste)

Re: cd to directory in paste buffer : shell function

2006-01-13 Thread zzapper
On Fri, 13 Jan 2006 10:28:45 -0800, wrote: >On 1/13/06, zzapper <[EMAIL PROTECTED]> wrote: >> I often want to cd to a (DOS) path that I've copied from some Windows App. > >The cygpath program will do the slash conversion for you: > >cdclipboard() >{ >unixpath=`cygpath -f /dev/clipboard`;

Re: cd to directory in paste buffer : shell function

2006-01-13 Thread Svend Sorensen
On 1/13/06, zzapper <[EMAIL PROTECTED]> wrote: > I often want to cd to a (DOS) path that I've copied from some Windows App. > > The following function (put in one of your startup files .bashrc .profile > etc) saves a few clicks > and is forward or backslash proof > > function cdp() > { > # cdp(as

Re: cd to directory in paste buffer : shell function

2006-01-13 Thread Brett Serkez
> I often want to cd to a (DOS) path that I've copied from some > Windows App. > > The following function (put in one of your startup files .bashrc > .profile etc) saves a few clicks and is forward or backslash proof [snip] Without deminishing the value of this procedure, I simply wanted to say

cd to directory in paste buffer : shell function

2006-01-13 Thread zzapper
Hi, I often want to cd to a (DOS) path that I've copied from some Windows App. The following function (put in one of your startup files .bashrc .profile etc) saves a few clicks and is forward or backslash proof function cdp() { # cdp(aste) # description : Cd to path in paste buffer: convert f