RE: [INFO] Adding "cygwin here" to Windows Explorer
> On Mon, Sep 27, 2004 at 10:02:28PM -0400, Jean-Sebastien > Trottier wrote: > >Hi guys, > > > >Just to add my 2 dimes, here's what I use: > > You're quoting my email. Are you volunteering to provide a > package? If so, the list to send your package information to > is cygwin-apps. People there can help you pull together what > you need. > > If not, then one of the main reasons for my sending my > original email was to shut down this interminable and > repeated discussion and come up with a solution for everyone > that could be installed via setup.exe. > > I don't need *more* discussion about the super special ways > that people do this. I'd like to see someone stepping up to > offer a package. > > >Christopher Faylor wrote: > >>But, regardless, I don't see any reason to debate this. I > would like > >>a package and would appreciate it if someone would provide one. Hmm. I'd like that too. Wonder if it's more likely to happen now or less -- Gary R. Van Sickle -- 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/
Re: [INFO] Adding 'cygwin here' to Windows Explorer
>>>But, regardless, I don't see any reason to debate this. I would like a >>>package and would appreciate it if someone would provide one. If changes are required to support this functionality in /etc/profile (or any of the other startup scripts) just let me know. J. -- 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/
Re: [INFO] Adding "cygwin here" to Windows Explorer
On Mon, Sep 27, 2004 at 10:02:28PM -0400, Jean-Sebastien Trottier wrote: >Hi guys, > >Just to add my 2 dimes, here's what I use: You're quoting my email. Are you volunteering to provide a package? If so, the list to send your package information to is cygwin-apps. People there can help you pull together what you need. If not, then one of the main reasons for my sending my original email was to shut down this interminable and repeated discussion and come up with a solution for everyone that could be installed via setup.exe. I don't need *more* discussion about the super special ways that people do this. I'd like to see someone stepping up to offer a package. >Christopher Faylor wrote: >>But, regardless, I don't see any reason to debate this. I would like a >>package and would appreciate it if someone would provide one. -- 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/
Re: [INFO] Adding "cygwin here" to Windows Explorer
Hi guys, Just to add my 2 dimes, here's what I use: Registry: [HKEY_CLASSES_ROOT\Folder\shell\cygshell] @="Cygwin Shell Here" [HKEY_CLASSES_ROOT\Folder\shell\cygshell\command] @="c:\\cygwin\\usr\\x11r6\\bin\\run.exe /usr/bin/sh.exe /usr/local/bin/cygwin-shell-here \"%l\"" Add content of /usr/local/bin/cygwin-shell-here: #!/bin/sh cd "$(/usr/bin/cygpath --unix "$1")" shift if [ -z "$DISPLAY" ]; then exec /usr/bin/rxvt $* else exec /usr/bin/uxterm $* fi I always have DISPLAY set to :0.0 by default in the windows registry since I start the X server on boot. Also, I never use rxvt, always xterm/uxterm so I added the logic above as an example. Of course, the $* argument passing is totally wrong since rxvt and uxterm do not take the same arguments... but again, that's just an example. Since it will always start uxterm for me, that means that my preferred shell (/bin/tcsh) is used instead of bash. Cheers, Sebastien Christopher Faylor wrote: > Hughes, Bill wrote: > >Reini Urban wrote: > >> 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 '#f0' -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. > > > >I don't want to risk cgfs ire but, what's wrong with > > > >[HKEY_CLASSES_ROOT\Directory\shell\rxvt] > >@="rxvt" > >[HKEY_CLASSES_ROOT\Directory\shell\rxvt\command] > >@="D:\\cygwin\\bin\\run.exe rxvt -name rxvt0 -e /usr/bin/bash --login -c > >\"cd > >'%1' ; exec /bin/bash -rcfile ~/.bashrc\"" > > > >(obviously with a rxvt0 section in .Xdefaults) > > > >Which doesn't require any changes to scripts? > > > >For what it's worth (not much, I know) I think this is probably better in a > >FAQ once a canonical answer has been agreed. > > You're saying that it is better for a user to have to read: > > [HKEY_CLASSES_ROOT\Directory\shell\rxvt] > @="rxvt" > [HKEY_CLASSES_ROOT\Directory\shell\rxvt\command] > @="D:\\cygwin\\bin\\run.exe rxvt -name rxvt0 -e /usr/bin/bash --login -c > \"cd > '%1' ; exec /bin/bash -rcfile ~/.bashrc\"" > > and follow detailed instructions rather than just install a package. > > It's hard to see why. > > But, regardless, I don't see any reason to debate this. I would like a > package and would appreciate it if someone would provide one. > > cgf -- 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/
Re: [INFO] Adding "cygwin here" to Windows Explorer
Christopher Faylor schrieb: Is there any chance that this could be rolled into a package so that we don't have to rehash it every few weeks. This discussion really is getting rather old. If it is something that people just have to have, then can someone roll it into a package and get it into the distribution? Gerrit? See http://koeln.convey.de/cywgin/CygwinPromptHere/ -- Reini -- 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/
Re: [INFO] Adding "cygwin here" to Windows Explorer
Is there any chance that this could be rolled into a package so that we don't have to rehash it every few weeks. This discussion really is getting rather old. If it is something that people just have to have, then can someone roll it into a package and get it into the distribution? cgf -- 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/
Re: [INFO] Adding "Cygwin here" to Windows Explorer
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 '#f0' -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/
Re: [INFO] Adding "Cygwin here" to Windows Explorer
kurtz writes: > Thorsten Kampe escribió: > >> [HKEY_CLASSES_ROOT\Folder\shell\command\command] >> @="C:\\cygwin\\bin\\rxvt.exe -e /bin/zsh --login -i -s \"%1\"" >> and... >> if [[ $OSTYPE = cygwin && $ARGC = 1 ]]; then cd $@; fi > > I set bash instead of zsh, and try to use $# instead of $ARGC, in my > .bashrc. There, $# always has the value 0. Any ideas? Right, bash doesn't seem to pass through the -s args to its init scripts. I've hacked this as follows: 1) In the registry entry: C:\cygwin\bin\rxvt.exe -fn 'Lucida Console-11' -geometry 80x48 -sl 300 -cr '#8b4513' -bg '#f0' -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? ht -- Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh Half-time member of W3C Team 2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 650-4587, e-mail: [EMAIL PROTECTED] URL: http://www.ltg.ed.ac.uk/~ht/ [mail really from me _always_ has this .sig -- mail without it is forged spam] -- 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/
Re: [INFO] Adding "Cygwin here" to Windows Explorer
Thorsten Kampe escribió: [HKEY_CLASSES_ROOT\Folder\shell\command\command] @="C:\\cygwin\\bin\\rxvt.exe -e /bin/zsh --login -i -s \"%1\"" and... if [[ $OSTYPE = cygwin && $ARGC = 1 ]]; then cd $@; fi I set bash instead of zsh, and try to use $# instead of $ARGC, in my .bashrc. There, $# always has the value 0. Any ideas? Cordially, Ismael -- 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/
Re: [INFO] Adding "Cygwin here" to Windows Explorer
* Tero Niemela (2004-09-14 19:06 +0200) > some of you may find this useful. I did the following, > works perfectly for me: > > Last line of ~/.zlogin is: > > [[ "$OSTYPE" = *cygwin* && $ARGC -eq 1 ]] && cd "$@" > > And this registry settings was added to Windows > registry: > > Windows Registry Editor Version 5.00 > > [HKEY_CLASSES_ROOT\Folder\shell\command] > @="Cygwin Here" > > [HKEY_CLASSES_ROOT\Folder\shell\command\command] > @="\"C:\\cygwin\\bin\\zsh.exe\" -l -s \"%1\"" > > With these, when I right-click a folder on Windows > Explorer, one available option is "Cygwin Here" that > start Cygwin+zsh and then cd to the right-clicked directory. Thanks. For the rxvt junkies I have improved it (made worse?): REGEDIT4 [HKEY_CLASSES_ROOT\Folder\shell\command] @="&Zsh Prompt Here" [HKEY_CLASSES_ROOT\Folder\shell\command\command] @="C:\\cygwin\\bin\\rxvt.exe -e /bin/zsh --login -i -s \"%1\"" and... if [[ $OSTYPE = cygwin && $ARGC = 1 ]]; then cd $@; fi If you have a call to "screen" which is the only thing I have in my .zlogin) the screen call has to be the last statement. Thorsten -- 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/
[INFO] Adding "Cygwin here" to Windows Explorer
Hi, some of you may find this useful. I did the following, works perfectly for me: Last line of ~/.zlogin is: [[ "$OSTYPE" = *cygwin* && $ARGC -eq 1 ]] && cd "$@" And this registry settings was added to Windows registry: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Folder\shell\command] @="Cygwin Here" [HKEY_CLASSES_ROOT\Folder\shell\command\command] @="\"C:\\cygwin\\bin\\zsh.exe\" -l -s \"%1\"" With these, when I right-click a folder on Windows Explorer, one available option is "Cygwin Here" that start Cygwin+zsh and then cd to the right-clicked directory. __ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail -- 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/