From: "Peter A. Castro" <doctor@fruitbat.org>
To: cygwin@cygwin.com
Subject: Re: Bash Here - Start Cygwin from a folders context menu
Date: Wed, 29 May 2002 11:20:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.21.0205290853351.20548-100000@gremlin.fruitbat.org> (raw)
In-Reply-To: <OFFCA6F123.4A5ED0F3-ONC1256BC7.004BDC82-C1256BC7.004EA3D9@fag.fiducia.de>
On Tue, 28 May 2002, Thomas Schweikle wrote:
> Hi!
Hi back at you !-)
> Bitte antworten an "Gerrit P. Haase" <gerrit@familiehaase.de>
> Gesendet von: cygwin-owner@cygwin.com
> An: David Starks-Browning <starksb@ebi.ac.uk>
> Kopie: cygwin@cygwin.com
> Thema: Re: Bash Here - Start Cygwin from a folders context menu
>
> >> I'd like it to work before I reference it in the FAQ.
>
> Fine!
>
> > Well, it was some fiddeling.
> > It worked well but now as I tried
> > to reinstall, it doesn't work on
> > mounted drives anymore:-(
[snip]
> Neccessary changes for zsh I leave upto the reader ;-)
... and here you go (pretty simply, really):
--- start of "zsh-here.reg" ---
REGEDIT4
[HKEY_CLASSES_ROOT\Drive\shell\zshHere]
@="Shell: zsh prompt here"
[HKEY_CLASSES_ROOT\Drive\shell\zshHere\command]
@="C:\\Programme\\Cygwin\\cygwin.bat \"%1\""
[HKEY_CLASSES_ROOT\Directory\shell\zshHere]
@="Shell: zsh prompt here"
[HKEY_CLASSES_ROOT\Directory\shell\zshHere\command]
@="C:\\Programme\\Cygwin\\cygwin.bat \"%1\""
--- end of "zsh-here.reg" ---
--- start of "cygwin.bat" ---
@echo off
C:
chdir \Programme\cygwin\bin
echo cd %1 | sed -e "s#\(.\):\(.*\)#/cygdrive/\1\2#" -e "s#\\\\#/#g" > %HOMEDRIVE%\.zshcd
zsh -l -i
--- end of "cygwin.bat" ---
--- start of "/etc/zprofile" ---
PATH="/usr/local/bin:/usr/bin:/bin:$PATH"
USER="`id -un`"
# Set up USER's home directory
if [ -z "$HOME" ]; then
HOME="/home/$USER"
fi
if [ ! -d "$HOME" ]; then
mkdir -p "$HOME"
fi
export HOME USER
for i in /etc/profile.d/*.sh ; do
if [ -f $i ]; then
. $i
fi
done
export MAKE_MODE=unix
export PS1='(%n@%m)[%h] %~ $ '
cd "$HOME"
test -f ./.zshcd && . ./.zshcd && rm -f $HOME/.zshcd
--- end of "/etc/zprofile" ---
> For W2K cmd.exe it is less complicated. You only need registry settings
> since it is not neccessary to replace '\' with '/' and substitute 'c:'
> with '/cygdrive/c' and there is an option telling cmd.exe to execute a
> commandline given command, then go to interactive mode:
--- start of "cmd-here.reg" ---
REGEDIT4
[HKEY_CLASSES_ROOT\Drive\shell\DosHere]
@="Shell: CMD &prompt here"
[HKEY_CLASSES_ROOT\Drive\shell\DosHere\Command]
@="C:\\WINNT\\System32\\cmd.exe /k cd \"%1\""
[HKEY_CLASSES_ROOT\Directory\shell\DosHere]
@="Shell: CMD &prompt here"
[HKEY_CLASSES_ROOT\Directory\shell\DosHere\Command]
@="C:\\WINNT\\System32\\cmd.exe /k cd \"%1\""
--- end of "cmd-here.reg" ---
--
Peter A. Castro <doctor@fruitbat.org> or <Peter.Castro@oracle.com>
"Cats are just autistic Dogs" -- Dr. Tony Attwood
--
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/
next prev parent reply other threads:[~2002-05-29 16:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-28 10:57 Thomas Schweikle
2002-05-29 11:20 ` Peter A. Castro [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-10-03 4:41 glen.coakley
2002-05-30 17:54 Kilroy, David
2002-05-30 19:20 ` Gerrit P. Haase
2002-05-28 1:41 Martin Gramatke
2002-05-28 2:59 ` Michael Hoffman
2002-05-28 4:32 ` Martin Gramatke
2002-05-28 8:30 ` Gerrit P. Haase
2002-05-28 9:14 ` David Starks-Browning
2002-05-28 9:30 ` Gerrit P. Haase
2002-05-28 10:52 ` Gerrit P. Haase
2002-05-28 10:20 ` David T-G
2002-05-28 13:30 ` Michael A Chase
2002-05-28 13:37 ` David T-G
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.21.0205290853351.20548-100000@gremlin.fruitbat.org \
--to=doctor@fruitbat.org \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).