Configuration files needed to set up right-click shortcut in context menus for MSYS2, MinGW32/64 bash
This is all the configuration files needed for adding "bash here" options in the Windows right-click shortcut/context menu.
This implementation should work for MSYS2 and MINGW32/64 shells that come with MSYS2.
%HOME%
exists.
(This script will source %HOME%/.bash_profile
)git clone [email protected]:njzhangyifei/msys2-mingw-shortcut-menus.git
into
your desired directory to install
git clone https://github.com/njzhangyifei/msys2-mingw-shortcut-menus.git
when git via ssh is not available./install
and follow the instructions. Use ./install --user
for current user onlyinstall_right_click_menu.reg
file to merge it into your
windows registrymsys2-launcher
via pacman (pacman -S msys/msys2-launcher-git
) or from source https://github.com/elieux/msys2-launcher
cygpath
.msys2_shell_zsh.cmd
in your
MSYS2 install directory. You will also need to change TEMPLATE_SHELL
in the
install script to zsh
. For example template, please see
reg_aio_zsh_msys2_shell_example.template
..reg
file. That's ALL you need to create this context
menu. You can delete this directory after merging the .reg
file.start_shell.cmd
, the script will
use bash_here_start_shell.template
for generating bash scripts.
$HOME
defined as
your home directory path.bash
(e.g. to use zsh
), you might want to create a
start_shell_zsh.cmd
and (mingw*/msys2)_shell_zsh.bat
. Then, you will need
to modify either the template or the bash script generated to call the
corresponding batch file.The MIT License (MIT) 2015 Yifei Zhang