X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,DNS_FROM_RFC_BOGUSMX,SPF_PASS X-Spam-Check-By: sourceware.org Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: How can I assign a hotkey to run a cygwin/bash script? Date: Fri, 6 Mar 2009 09:30:44 -0600 Message-ID: <0A4ADB2148EA2948B9FFFB980FA0D22F0589F52F@djexchange.dickey-john.com> References: <8p21r4pui1dgbl8q2ovpvcsharaburle84 AT 4ax DOT com> <49B09CE9 DOT 1060500 AT gmail DOT com> From: "Arun Biyani" To: "Dave Korn" , X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com >> -----Original Message----- >> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf >> Of Dave Korn >> Sent: Thursday, March 05, 2009 9:48 PM >> To: cygwin AT cygwin DOT com >> Subject: Re: How can I assign a hotkey to run a cygwin/bash script? >>=20 >> Hongyi Zhao wrote: >> > Hi all, >> > >> > I've written a cygwin/bash script and want to run it by a customized >> > hotkey laterly, it this possible? >> > >>=20 >> Sure. Create a windows shortcut to bash.exe, open the properties. In >> "Target", after C:\cygwin\bin\bash.exe, add >>=20 >> --login -i -c "" >>=20 >> and you can then assign a key-combination to the shortcut (as for any >> other >> windows shortcut) by clicking in "Shortcut key" and typing your >> ctrl-shift-alt-whatever combination. >>=20 >> The "your command here part" can be any valid shell commands, or you >> can >> just pass in the path to a script you want run. (Remember to either >> chmod +x >> the script first, or to use the 'source' bash builtin to execute it). >>=20 >> You'll probably want to change the "Start in" dir to your homedir or >> /tmp or >> somewhere similar, depending on your needs. >>=20 >> cheers, >> DaveK >>=20 >> -- >> 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/ It appears that Windows XP shortcuts have a limitation. The shortcut must be to a target on the desktop (or to a target in a folder on desktop). -- 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/