X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to; q=dns; s=default; b=AxYx gmO0vkWRgqNJlZtXgYGEG3Uc8f8Gy/OcQNsePc6atsNjoRC9cRPy3ZzvpL4Brvaj K+ACnJ4NJ54+JXGW8V8ntbQSVPh+hO2sYLDU2e5Iqa6wJ+4jBGGjvBTZuJmyLBKy xuMSsUTeTBUQ6k1fl1Pbk/exHldXZLCgSVTiiZw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to; s=default; bh=AP5Ni4tanv PBQ6tZgxG/0r27Zao=; b=gueu3M4Ol3OJ2LbI0WbNrLFs1fR2ZBXwGoL/vLkYVz liZQ7VlPkxoyj2VeWQtOgCKolR74A486xFKBVxMTAM493N1I14sW4bJjvRAJPI8Q m9FljUzCz/BAJAMG0EB1Xq9znxoPf1nXhdLP7n5A5ytkumAqGa/Uu7pOPK1SAG24 Y= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wm0-f52.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=xPK3NxZL+6Qyze1SLd+MuNPSOKDQmXGf2aWIWaPoOPI=; b=d1WyQtFVHRethSHrzvwHOqWYJQO6cDJNFtcJrjl+Kzs8yTqjiu5136u8m99IcCvCkS uXwkEtNQ02+h4llX1ukuEFFxvu/djUkvbyOm1iQYlqdhEz2aESDN5he7SBBQ50dzRnH4 XZmyhmCR9jGjmsheM/1ShaoP7ntKnqGcJXzTKKeKCmUcJPiLpjtmaKD1y6csmLcn6sdX X4JwK++Lez2r/WvvHjauuoxj9/xztXQEyO8TOR9DTQfDGsLjLAv4V0+7vchO7q8iPJgE K9CMcqQScjynjWI12yt+vKH01J/DvASpJJTDBavjHENDG5WpIZVoDb/lPdNxaQN8+toI SgsA== X-Gm-Message-State: ALoCoQmegBPnoFy9JPdmS56OfV40VdwhhsqRe8l1CTvKDHZu0xjEZ1Ntwas0RfbGIlaBR0iV3lXt X-Received: by 10.194.184.81 with SMTP id es17mr89280106wjc.10.1448966798499; Tue, 01 Dec 2015 02:46:38 -0800 (PST) Date: Tue, 1 Dec 2015 10:46:20 +0000 From: Adam Dinwoodie To: cygwin AT cygwin DOT com Subject: Re: control-R broken in bash (__fzf_history__) Message-ID: <20151201104620.GH14466@dinwoodie.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes On Mon, Nov 30, 2015 at 12:36:16PM -0600, David Blackstone wrote: > Recently I found that the behavior of control-R in bash had changed. > The key binding has been modified by the fzf-bash package to activate > the fzf fuzzy search program. The first noticeable result is that > pressing control-R displays a message with the string > $(__fzf_history__) followed by a listing of history commands, instead > of searching through command-line history the way control-R worked > before. > > I update my cygwin install frequently installing all new packages. So > far the only way I've found to deactivate this is to uninstall the > fzf-bash package, but that is going to make my updates more > complicated as I'll have to click to install all packages then > manually deselect that package before proceeding. > > Is there a way to disable the fzf bash keybinding without having to > uninstall the package? Is there any chance this package could be > modified to not be turned on without being explicitly enabled in the > user's shell configuration files, so this radical environment change > doesn't happen just from installing the package? fzf-bash installs a script into /etc/profile.d so that, once installed, the key bindings are available. I think it's reasonable to assume that someone installing the package would want the functionality -- your desire to install all the packages but not have all the function notwithstanding -- and as such I'm not willing to clobber the package so that people installing it need to do extra work to be able to use it. If you want to keep installing everything but want to maintain existing Ctrl-R behaviour, your best bet is to explicitly bind Ctrl-R to the Bash reverse-search function. You can do this by adding the following line to your .bashrc, which (unless you're doing something odd) is executed after the contents of /etc/profile.d: bind '\C-r:reverse-search-history' Adam -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple