Git Product home page Git Product logo

Comments (7)

kerol2r20 avatar kerol2r20 commented on May 25, 2024

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.

kalaschnik avatar kalaschnik commented on May 25, 2024

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.

kerol2r20 avatar kerol2r20 commented on May 25, 2024

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.

kalaschnik avatar kalaschnik commented on May 25, 2024

Same, it does not like the -d operation... hmm

from windows-terminal-context-menu.

kalaschnik avatar kalaschnik commented on May 25, 2024

@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.

rescenic avatar rescenic commented on May 25, 2024

Yeah, doesn't work for Cygwin & MSYS2. My bad. It works for WSL, CMD, PowerShell.
wsl

from windows-terminal-context-menu.

Akshay-akkay avatar Akshay-akkay commented on May 25, 2024

Same issue is happening for Git Bash.

from windows-terminal-context-menu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.