delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/13/13:42:22

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: zzapper <david AT tvis DOT co DOT uk>
Subject: Re: cd to directory in paste buffer : shell function
Date: Fri, 13 Jan 2006 18:41:28 +0000
Lines: 22
Message-ID: <i0tfs19qeh3ibg9gugkn6jta2dlfr5e77r@4ax.com>
References: <rfqfs1pkamechtg6btjim15bkrt2l6miq5 AT 4ax DOT com> <7ff9c2a10601131028q66185044qb68ba0700b36fb21 AT mail DOT gmail DOT com>
Mime-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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 Fri, 13 Jan 2006 10:28:45 -0800,  wrote:

>On 1/13/06, zzapper <david AT tvis DOT co DOT uk> 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`;
>
>        if [ -d "$unixpath" ]; then
>                cd "$unixpath"
>        fi
>}

echo "that's cute"
-- 
zzapper
Success for Techies and Vim,Zsh tips
http://SuccessTheory.com/


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