cd to directory in paste buffer : shell function

zzapper david@tvis.co.uk
Fri Jan 13 18:51:00 GMT 2006


On Fri, 13 Jan 2006 10:28:45 -0800,  wrote:

>On 1/13/06, zzapper <david@tvis.co.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/



More information about the Cygwin mailing list