Hi Paul, > >From the installation instructions, it appears that the correct way to > run msys2 is via the msys2_shell.bat/mingw64_shell.bat scripts. > However, using these results in a new console window being opened, > using the standard Windows console. > > I normally use ConEmu for my console sessions, and I would like to do > the same for msys2. How would I start the msys2 shell *without* using > the supplied batch files?
"Also, I am looking to script some of my builds, using either Python or Powershell (using sh isn't an option, for reasons that probably aren't important here). How would I do that? " I used a .bat file to load Msys and then execute TCL with the following method. I have not yet had the time to port the .bat driver to Msys2 and test it. This script was downloaded and adapted for use as a .bat driver for Msys. - Running Bash Shell Scripts from batch fileshttp://mingw-users.1079350.n2.nabble.com/Running-Bash-Shell-Scripts-from-batch-files-td5769153.html.http://www.ysbl.york.ac.uk/~mcnicholas/bash_from_bat.tar.gz Here are references used to adapt the driver to TCL: - Can You Embed an TCL Script in Bash Script or Python Script That's Callable by External Programs?http://stackoverflow.com/questions/3926273/can-you-embed-an-tcl-script-in-bash-script-or-python-script-thats-callable-by-e - envhttp://wiki.tcl.tk/1624 - Setting environment variables with a scripthttp://wiki.tcl.tk/4282 - (+) Setting /bin/sh environment variables in the scripthttp://wiki.tcl.tk/706 - (+) [5]exec magichttp://wiki.tcl.tk/812 - [6] Setting up the .profile in the scripthttp://wiki.tcl.tk/705 - msys.bat diffhttp://article.gmane.org/gmane.comp.gnu.mingw.msys/1398/match=msys+sh+path If you can accommodate using a "sh" session, then this method can be used. I initially downloaded and installed ConEmu for my console sessions as one of the choices of terminals from pacman. Using the following information; it worked but I feel more comfortable with other terminals. This configuration should get you started. My notes mention a possible error, so you may have to tweak the configuration. Google Information on installation and configuration: "configure msys2 to use conemu" - https://code.google.com/p/conemu-maximus5/issues/detail?id=1032 - (+) https://bugzilla.mozilla.org/show_bug.cgi?id=1100925 - (+) https://code.google.com/p/conemu-maximus5/wiki/CygwinStartDir - ConEmu Command Line. Command line arguments. https://code.google.com/p/conemu-maximus5/wiki/CommandLine - Launching applications in ConEmu https://code.google.com/p/conemu-maximus5/wiki/LaunchNewTab This is my command line example using : C:\msys64\mingw64\bin This command line gave the best results. It may fit into your PowerScript requirements. "C:\msys64\mingw64\bin\ConEmu.exe -cmd "set PATH=C:\msys64\mingw64\bin;%PATH%" & sh -l -i" Good luck- Gary Gabriel ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ Msys2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/msys2-users
