This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Useful Cygwinism: "Explorer Here"


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]