ghostx2 / superputty

Automatically exported from code.google.com/p/superputty
MIT License
0 stars 0 forks source link

Run command in Cygterm, rather than using login shell #337

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If you open the PuTTY Configuration in PuTTYcyg, you can see the option 
"Command (use - for login shell)"

I can't find a good way to use this feature.  I am assuming that SuperPuTTY 
just always uses the login shell.  This would be especially useful for 
launching irssi.  With support for this, you can have IRC windows that start 
automatically in SuperPuTTY!

I'm not familiar with the details of how SuperPuTTY works, but if you could 
define a session with a custom putty command line, instead of choosing 
individual options in the GUI, that would rock!

I just want to run:
putty.exe -cygterm irssi

And have it be in a SuperPuTTY tab

Original issue reported on code.google.com by BriarPat...@gmail.com on 5 Jun 2013 at 10:39

GoogleCodeExporter commented 9 years ago
Found a pretty gnarly workaround.

Apparently you can specify the starting directory in the "Host" field, i.e. 
localhost:C:\ will cause cygterm to start in the directory /cygdrive/c

In your .bashrc file, you can include a line that looks something like

if [ $(pwd) == /irssi ]; then irssi; fi

Then, start Cygterm using the hostname localhost:C:\cygwin\irssi

Still, it would be a pretty nice feature to be able to specify a fully custom 
invocation of PuTTY, rather than forcing SuperPuTTY work out all the arguments 
automatically.

Original comment by BriarPat...@gmail.com on 5 Jun 2013 at 11:17

GoogleCodeExporter commented 9 years ago
This would be extremely helpful to me (and the group I work within) as well. 
Other than the workaround above I don't see a way with any of the putty 
wrappers out there (mremote, poderosa, superputty, putty conn mgr) to feed 
commands to cygterm shells.

Original comment by KaosX2...@gmail.com on 23 Jul 2013 at 3:23