delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/28/04:58:15

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <3D1C24E7.2080304@mscha.org>
Date: Fri, 28 Jun 2002 10:57:11 +0200
From: Michael Schaap <cygwin AT mscha DOT org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Cygwin mailing list <cygwin AT cygwin DOT com>
Subject: Re: Useful Cygwinism: "Explorer Here"
References: <NCBBIHCHBLCMLBLOBONKMEOGDAAA DOT g DOT r DOT vansickle AT worldnet DOT att DOT net>
X-Virus-Scanned: at mscha.org by amavisd-milter (http://amavis.org/)

On 28-6-2002 6:06, Gary R. Van Sickle wrote:

># Easy "Explorer Here" command
>x()
>{
>	if [ "${1}" = "" ];
>	then
>		XPATH=".";
>	else
>		XPATH="$(cygpath -w "${1}")";
>	fi
>	explorer $XPATH &
>}
>
Easier (and faster), if you have the cygutils package installed:

x()
{
    cygstart ${1:-.}
}

Or, if you prefer the two-pane layout (and haven't set it as the default):

x()
{
    cygstart --explore ${1:-.}
}

 - Michael


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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