This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Help with shortcuts
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: mrushton <mrushton at ptd dot net>, cygwin at cygwin dot com
- Date: Fri, 28 Feb 2014 21:59:16 +0400
- Subject: Re: Help with shortcuts
- Authentication-results: sourceware.org; auth=none
- References: <239236467 dot 6505411 dot 1393596596199 dot JavaMail dot root at ptd dot net>
- Reply-to: cygwin at cygwin dot com
Greetings, mrushton!
> Can some on give me a help with creating a shortcut to a shell script under Windows 7 ?
> I am doing something like this in the windows shorcut :
> C:\CygwinSoftware\bin\mintty.exe -i /Cygwin-Terminal.ico --exec /cygdrive/x/INBOUND/CWSCRIPTS/mymenu.sh
> Well I found in the documentation that when you run a script this way, it is
> not an interactive shell and it does not process your .bashprofile and
> .bashrc and all the good stuff it normally does when it logs in. I am
> missing aliases when it logs in this way.
> How can I create a shortcut that would process my normal startup files and
> then run the script I what ?
> I have been fiddling with mkshortcut but have not had much luck with it as of yet.
That's because you're doing it wrong.
Include the call to "mymenu" from your profile script, once the rcfile is
read.
--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 28.02.2014, <21:58>
Sorry for my terrible english...
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple