OhmNomNom / thyme

A fork of mintty, for the modern world
GNU General Public License v3.0
0 stars 0 forks source link

minttyrc entry to run a login shell #237

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It seems I can only make mintty run a login shell with dash/- as the command 
line argument. there should be a way to achieve this in minttyrc.

such as:

LoginShell=0 (default, non login_shell)
LoginShell=1 (run a login_shell)

Original issue reported on code.google.com by roge...@gmail.com on 7 Dec 2010 at 6:42

GoogleCodeExporter commented 9 years ago
Why?

Original comment by andy.koppe on 7 Dec 2010 at 7:14

GoogleCodeExporter commented 9 years ago
With mintty running a login shell, the bash_profile stuff are loaded and the 
starting directory is $HOME, and many more custom stuff.

I want a way to make this the default behavior, instead of always typing mintty 
-. 
By the way I'm using Launchy, I need to type 'mintty' then 'Tab' then '-'

Original comment by roge...@gmail.com on 7 Dec 2010 at 7:37

GoogleCodeExporter commented 9 years ago
That's not really an issue on a shell command line: just create an alias or 
shell function (or use mintty's Alt+F2 shortcut). Also, when invoking a 
terminal from an existing shell, you don't normally need it to invoke a login 
shell, because the environment should already have been set up for the initial 
session.

Regarding Windows shortcuts, it's easy enough to add the '-' to the shortcut 
target. The postinstall script of the Cygwin setup.exe package and the 
create_shortcut script shipped with the .zip releases already do that.

As for Launchy, that works just fine for me, without having to manually provide 
the '-'. That's because it finds the 'mintty' shortcut that the aforementioned 
postinstall script created in the Cygwin folder of the start menu. So you just 
need to make sure there is a suitable shortcut in a location searched by 
Launchy.

Hence I don't see a need for yet another option here.

Original comment by andy.koppe on 7 Dec 2010 at 8:45

GoogleCodeExporter commented 9 years ago
How can I run the login shell without specifying the "-" parameter? it's 
impossible to pin mintty to Taskbar without tweaking shortcut properties which 
is cumbersome. Is there a way to invoke the login shell commands by hand on 
mintty startup? 

Original comment by magda.ga...@gmail.com on 27 May 2014 at 8:27