njzhangyifei / msys2-mingw-shortcut-menus Goto Github PK
View Code? Open in Web Editor NEWConfiguration files needed to set up right-click shortcut in context menus for MSYS2, MinGW32/64 bash
License: MIT License
Configuration files needed to set up right-click shortcut in context menus for MSYS2, MinGW32/64 bash
License: MIT License
Hello,
Thanks for contributing very nice stuff.
For me, it only works under shell path instead for example:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Classes\Directory\shell\msys2]
@="MSYS2 Bash Here"
"Icon"="\"C:\\msys64\\msys2.ico\""
[HKEY_LOCAL_MACHINE\Software\Classes\Directory\shell\msys2\command]
@="C:\\msys64\\msys2_shell.cmd -msys -where \"%v\""
After removing the Background from the path, it works well.
The new 2016.05-2 update of filesystem breaks the functionality, since all start scripts got unified:
WARNING: the shell starting scripts have been unified. Please update your
shortcuts to the following targets, otherwise they will STOP WORKING:
- MSYS2_ROOT\msys2_shell.cmd -mingw32
- MSYS2_ROOT\msys2_shell.cmd -mingw64
- MSYS2_ROOT\msys2_shell.cmd -msys
however just replacing the scripts in the code with the new script and the argument doesn't seem to work, I guess the new script handles the arguments differently.
Since msys2 been upgrade for more environments
https://www.msys2.org/docs/environments/
Please consider add UCRT64, CLANG64, etc...
This script is no problem with blank space such as "Program Files", but if the directory's name has & character, such as "x&y", this script will failed.
"/usr/bin/bash: 第 0 行: cd: C:\Users\Nero\Desktop\x: No such file or directory
"
environment: windows 10 x64, msys2 x86_64
There is a missing backslash in both the path to icon and path to the cmd file to launch the shell.
It should be (example) C:\\msys64\msys2.ico
, but generated C:\\msys64msys2.ico
It should be (example) C:\\msys64\msys2_shell.cmd
, but generated C:\\msys64msys2_shell.cmd
usage step 3:
./install and follow the instructions
You should say use what shell.
cmd
can not excute ./install
.
And I have installed git-bash
, the easiest way is use right click menu git-bash(embed mingw64)
to execute ./install
.
But I afraid this would add another git-bash(embed mingw64)
.
I'd like use another independent mingw64
(I install another one) because git-bash
'smingw64
is less function.
But I don't know how to do,
mingw64(I intalled )
do not have a exe like cmd.exe
, I can't figure out how to use mingw64(I intalled )
to excute ./install
Regarding the instruction:
- Make sure environment variable
%HOME%
exists. (This script will source%HOME%/.bash_profile
)
Should the variable %HOME%
actually be $HOME
?
Cheers,
"git clone" through ssh needs ssh permission
git clone [email protected]:njzhangyifei/msys2-mingw-shortcut-menus.git
and it will work well cloning via https
git clone https://github.com/njzhangyifei/msys2-mingw-shortcut-menus.git
Today after the "pacman -Syu"
the mingw64_shell.bat content is changed:
:
@echo off
rem To activate windows native symlinks uncomment next line
rem set MSYS=winsymlinks:nativestrict
rem Set debugging program for errors
rem set MSYS=error_start:%WD%../../mingw64/bin/qtcreator.exe^|-debug^|^<process-id^>
rem To export full current PATH from environment into MSYS2 uncomment next line
rem set SET_FULL_PATH=1
call "%~dp0start_shell.cmd" -mingw64 %*
:EOF
it seems it call the script "start_shell.cmd" instead and old script is not workded anymore.
Thanks for fixing this issue! :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.