delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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: | <41556AF8.90908@x-ray.at> |
Date: | Sat, 25 Sep 2004 14:56:24 +0200 |
From: | Reini Urban <rurban AT x-ray DOT at> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.8a3) Gecko/20040817 |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: [INFO] Adding "Cygwin here" to Windows Explorer |
References: | <20040914170613 DOT 40672 DOT qmail AT web61307 DOT mail DOT yahoo DOT com> <v189njr02xk3 DOT dlg AT thorstenkampe DOT de> <cimmio$ne$1 AT sea DOT gmane DOT org> <f5bwtykaseh DOT fsf AT erasmus DOT inf DOT ed DOT ac DOT uk> |
In-Reply-To: | <f5bwtykaseh.fsf@erasmus.inf.ed.ac.uk> |
X-IsSubscribed: | yes |
Note-from-DJ: | This may be spam |
Henry S. Thompson schrieb: > 1) In the registry entry: > > C:\cygwin\bin\rxvt.exe -fn 'Lucida Console-11' -geometry 80x48 -sl 300 -cr '#8b4513' -bg '#fffff0' -e /usr/bin/bash -c "XXX=\"%1\" bash --login -i" > > 2) In my .bash_profile > > if [[ "x$XXX" != "x" ]] > then > cd "$XXX" > unset XXX > fi > > This is a moderately embarassing/messy hack -- can anyone do better? I use a similar scheme since the good old b20 days. Just not with the XXX name and not with a subshell. (I put the $PWD arg into a temp file in the cygwin.bat starter, which I pickup at .profile) And not for the Explorer (which I don't use), but for a TotalCmd button. To open some shell like bash, rxvt, ksh, 4nt in the current dir (optinally specified by some dir arg). A keyboard shortcut is also useful. And I also apply a lot of path unification then, to shorten the windows path (where I use subst) to the optimal cygwin path (where I have symlinks) .profile: case $PWD in /cygdrive/r/PERL* ) cd `echo $PWD | sed -e 's!/cygdrive/r/PERL!/usr/src/perl!'` ;; /cygdrive/r/gnu/cygwin* ) cd `echo $PWD | sed -e 's!/cygdrive/r/gnu/cygwin!/usr/src!'` ;; /cygdrive/r/gnu* ) cd `echo $PWD | sed -e 's!/cygdrive/r/gnu!/usr/src/gnu!'` ;; /cygdrive/r/lisp* ) cd `echo $PWD | sed -e 's!/cygdrive/r/lisp!/usr/src/lisp!'` ;; /cygdrive/p/CORMAN* ) cd `echo $PWD | sed -e 's!/cygdrive/p/CORMAN~1/CORMAN~1.5!/usr/src/lisp/corman!'` ;; /cygdrive/r/php* ) cd `echo $PWD | sed -e 's!/cygdrive/r/php!/usr/src/php!'` ;; /cygdrive/n/* ) cd `echo $PWD | sed -e 's!/cygdrive/n/!/!'` ;; /cygdrive/v/* ) cd `echo $PWD | sed -e 's!/cygdrive/v!/www!'` ;; /f/data/mp3/* ) cd `echo $PWD | sed -e 's!/f/data/mp3/!/music/!'` ;; esac -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |