X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ABCEA3858D20
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1707566898;
	bh=d5VG2MTpptH0ZdDRc+eeRytxetGxJt7No5PR+LZzkQs=;
	h=References:In-Reply-To:Date:Subject:To:Cc:List-Id:
	 List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
	 From:Reply-To:From;
	b=k14ENPzBx6iA6YcBpPi7IDTjTeXHWUb2//fpsi6Gq0ejYtoTC7YBpdCDXmGwG0JDU
	 683Sr7Yi1Rj/gAj+A1vgitrZ1YJ4nVnW8wYsdXePXedLqbvPjWPuEz2Nm08kV3t1/y
	 nSatIq/rgxepFgHrEDTVbS54Ng7UBBbMapg+uTcQ=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E400C3858D20
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E400C3858D20
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707566844; cv=none;
 b=U3j6Ao7UWZEq/u6ON+yohQBVnKXmgDYZRQbEn7nZfB64hghGcg8WHVT3Kxa8+7vPXFl3OBFp58IHFrfNrFeSlMXIQzqYl0BGPzCY0dcXQeJ7jt0j7Y5SCzuv+tDpDalDrKQaL0Cx0GFttZREP2b8oFOYkXDZS21lJjEmDamLFzo=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1707566844; c=relaxed/simple;
 bh=ESVemdtIjpT1lP1NSPHgKZErjzzkB9r1kpMB6UJcwf8=;
 h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
 b=SZ8TDRqnJrlXeaUSYdFWYjryeBilJh5kXOmmSbnDAdt4iDeCxQXj7f88rkMrCok/GMYqJShEqgtRKyAZraIK5Bn3aPHBpiAyHTreamwTh/gJLJyhwS7jWjfK5f/t3t2HcG+Dd4ynBfiQ1DRIQAVipvcxVRsYXGzryETQ3Np//Fg=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1707566842; x=1708171642;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=J4Ivf6cLZVnud0HahmumrGNwcN5+z+IfYwG3q7Ei5vo=;
 b=UoulHR8YiwbrMXs4ZWL6MFTaQQF69fuDwGnM/NoltXq/W0haPA/0gvHYdIhmxfFVhP
 Fb8AKY50LaTAUNOuTZ6lLX3Su1ZmuVrL0/q2Y4emhV7k2h+2RjmLoqs7yAqM5mqctJLJ
 QDDHKdvhKGzZbdujNDGLrN148SrOFwBTU8RrhaOoRbwr/CNXY9kVgZW3MoFtO+Tvt6D3
 ihX7+rxBiWdH7LExhhJBv9iZB84zQUZJARbDiQzZI5Pv9Y9P+4g8tjRTKZ9esrCw0nT0
 7/oNStqvUR3YVEeZVa7P/4kQ3DhTf8wGZypXwCVcbGanXNfmWKXr4kNol3bkXy8w4PZB
 a5Rg==
X-Gm-Message-State: AOJu0Yw+wCwKpIq2MFuaHjzFPIcdc0dan9AjlLKeii/S1P208Kw1ZZp8
 hMY+1fsFHOT6A9ZVqA75KzvIABXZwjUvlSoJBEjFa0TaxMeF2a7udRVv64vNLnz8m2DiK7nZjQt
 bjmQpLnzDUudJa/HZkDrrpTcMIEU=
X-Google-Smtp-Source: AGHT+IHDGST3I4vmRF96/Y3U6YKiH6fU+w2AWupsFdEBndmuOzyZDTgvc26CGbTqAUBRIPYM5dXZYDmpWkY1k3/hyig=
X-Received: by 2002:a6b:e60d:0:b0:7c3:f05d:60cf with SMTP id
 g13-20020a6be60d000000b007c3f05d60cfmr2699871ioh.11.1707566841992; Sat, 10
 Feb 2024 04:07:21 -0800 (PST)
MIME-Version: 1.0
References: <CY8PR10MB6562287201341BC93A7B8D73A24A2@CY8PR10MB6562.namprd10.prod.outlook.com>
In-Reply-To: <CY8PR10MB6562287201341BC93A7B8D73A24A2@CY8PR10MB6562.namprd10.prod.outlook.com>
Date: Sat, 10 Feb 2024 07:07:09 -0500
Message-ID: <CAD8GWssOKX_ZaZZoWC+EyN486QzgNW1cYfh3=EbzXqGoXjY=MA@mail.gmail.com>
Subject: Re: Suggestion: [setup] Add an option to allow user to add "Open
 Cygwin Terminal Here" to Right-click menu
To: Yang Yu Lin <yylofficial@hotmail.com>
Cc: "cygwin@cygwin.com" <cygwin@cygwin.com>
X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT,
 FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP,
 T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Lee via Cygwin <cygwin@cygwin.com>
Reply-To: Lee <ler762@gmail.com>
Content-Type: text/plain; charset="utf-8"
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 41AC8KHR013743

On Fri, Feb 9, 2024 at 11:21 PM Yang Yu Lin via Cygwin wrote:
>
> It would be convenient for users to open specific folder in terminal by just right-click it, like Git Bash and Windows Terminal.

search for the 'chere' package in setup

I use this .reg file:

C:\Installed>cat cygwinHere.reg
Windows Registry Editor Version 5.00

; add a Windows Explorer right-click option for folders to
;   Open Bash Shell Here

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\bashShell]
@="Open Bash Shell Here"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\bashShell\command]
@="C:\\Windows\\system32\\cmd.exe /c \"pushd %L && set
CHERE_INVOKING=1 && c:\\cygwin\\bin\\bash.exe --login -i\""

; @="C:\Windows\system32\cmd.exe /c \"pushd %L && set CHERE_INVOKING=1
&& c:\cygwin\bin\mintty.exe - \""
; which has the annoying flash of the DOS cmd window opening & closing
before the mintty window opens

C:\Installed>

> Note: I hope this change would work on Windows 11 right-click menu. (Because I don't like "Show more options" or Shift + Right-click)

I'm still on Windows 10; I have no idea what does/doesn't work on Windows 11

Regards,
Lee

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

