Useful Cygwinism: "Explorer Here"

Michael Schaap cygwin@mscha.org
Fri Jun 28 03:17:00 GMT 2002


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/



More information about the Cygwin mailing list