Comments (7)
One question is how to identify a profile is Cygwin environment?
Because this profile is added by user, it's not easy to guarantee a fixed pattern.
from windows-terminal-context-menu.
Either by checken the commandline
property with a regular expression as cygwin by default has its own name included in the install directory (i.e., cygwin64
or cygwin32
) see here:
Windows Terminal’s settings.json
:
{
"guid": "{07ece1cb-ff14-4179-a738-1781081fd8be}",
"hidden": false,
"name": "Cygwin",
"icon": "C:/cygwin64/Cygwin-Terminal.ico",
"commandline": "c:/cygwin64/Cygwin.bat",
"startingDirectory": "/cygdrive/d",
"backgroundImage": "%OneDrive%/.config/.assets/cygwin.png",
"backgroundImageOpacity": 0.1
},
Or you could also allow a user to set a flag, in case the go crazy and change cygwin names to something different:
This project’s config.json
:
"{07ece1cb-ff14-4179-a738-1781081fd8be}": {
"icon": "cygwin.ico",
"isCygwin": true
},
I think the latter option is safest.
from windows-terminal-context-menu.
These two way are good!
Have you tried to open wt.exe with /cygdrive/c
path?
I tried `wt.exe -p "Cygwin" -d /cygdrive/c/". But it did not worke.
from windows-terminal-context-menu.
Same, it does not like the -d operation... hmm
from windows-terminal-context-menu.
@rescenic Well, how does this solve anything regarding the issue (i.e., open a desired folder location using shell menu)?
from windows-terminal-context-menu.
Yeah, doesn't work for Cygwin & MSYS2. My bad. It works for WSL, CMD, PowerShell.
from windows-terminal-context-menu.
Same issue is happening for Git Bash.
from windows-terminal-context-menu.
Related Issues (20)
- Add "Run as Admin" Items HOT 9
- Add Context Menu to Drives HOT 1
- Open as Tab on a existing Terminal window HOT 4
- Does not work if username has a space in between HOT 1
- i'm sorry, please delete this
- Adding Git Bash does not work HOT 2
- Option to show the menu on Shift-RightClick HOT 2
- Admin Terminal Option HOT 1
- Add keyboard shortcut
- Error while installing firebase packages into flutter project HOT 1
- File doesn't have app associated with it HOT 4
- Icons in windows terminal dont show up unless launched as admin HOT 1
- Need to add bash support HOT 1
- No submenu
- Not working with Windows Terminal Preview HOT 2
- Could not find path
- Git Bash default icon on context menu is replaced by unknown.ico HOT 1
- Run-As window flashes during execution
- Does not work for custom added terminals HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windows-terminal-context-menu.