This is the mail archive of the
mailing list for the Cygwin project.
Re: cd to directory in paste buffer : shell function
On Fri, 13 Jan 2006 10:28:45 -0800, wrote:
>On 1/13/06, zzapper <email@example.com> 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:
> unixpath=`cygpath -f /dev/clipboard`;
> if [ -d "$unixpath" ]; then
> cd "$unixpath"
echo "that's cute"
Success for Techies and Vim,Zsh tips
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html