From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27187 invoked from network); 30 Aug 2021 00:37:32 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 30 Aug 2021 00:37:32 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1630283852; b=JqKGsHhtOyqD94b0jVGMtY6DVkqL6aoQ5A0djBLGZrE84q8RAAuPutlTtUYWwY9eAKSOHBwgP0 LhPwfA6NB/OYiOa+mC+Qk4jP+PZVw85+vp8Iv/OE5Ra0tJiv5/L8NGpjy1PQg8AB3W/qVjWVG+ QMSaqp420WhhccLskNyDjAfhrSyz9xus4tUUKHlhtd0ze5MjYAekblyqdRwNv2Fq+O782CpkKy yRZfRjopUKOOhvn+sC55u67dYGOz7dfHxBU5P1QN9kajO+XZuv/MkFRgHOPoyvZMj+T/3RbgFX iWYY5c7OKUOpHh5zTbcBNm9+C87BVU0wehs4zJmYa3PPVg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (email.dondley.com) smtp.remote-ip=34.203.132.18; dkim=pass header.d=dondley.com header.s=default header.a=rsa-sha256; dmarc=pass header.from=dondley.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1630283852; bh=Z8acSkJcwLcSfpXD25VIeuzQJh8nf+7458iNS3zOcGk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Message-ID:Subject:To: From:Date:MIME-Version:DKIM-Signature:DKIM-Signature; b=R878n9OdVS2aeVEnRauNQUFJLB30JXXo9WKJ23WrERwST05bFCxlziUqYnrQtXhL6NmTUxLnkM /a4AJf1zpHcID7eTr6l3uRmavPbiO7Dduhbkg7Vo0PVx0mbsB1xG8nbLIdomLkl1+7bl5M031W xYXRS50L0r2jKB+HVgtYGse81oKH2H10XwiMtUaR7o2aAMyO5PJ7SggqiV7l9DbsMh6iy8lHrr LCFBGdpjoeHfvCJgI973C6OeV1SO/yoZXIQlZJLOh9pt+pbIapXo3c6+8Z64JtlvkHlbpROaVC c3frVihWJHHmJjsoeZJ2qN3qWds9ANB2oa+BTNmJjB2yZg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Message-ID:Subject:To:From:Date:MIME-Version:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=d1c15rgL/b4m7xTl6Vs3hSEb4JsObNTQoZAI0zN0050=; b=Xz/V4y6Z7iC1OO7MzqkRFvhML6 g6W5jcIdRsu9Ge8NAgFR3WDFEYxIQ+ObaU9q4u2yVNvMll4jWGVBe2F3+mnz0w7hhIYGcN6WBQyuQ xg3Q862NsE9Wk/rqPoSbHKs8UcMjjHr2Imn5txD1lCpByRLtq3s4rrJ9mihGAOarQXbcc4SftlpkM d7XW/eVYmgUW/ubyQ7rpZP8o5GDwrBK5/CiLW5lnp4AZyXsDNRd/XJDXFmnc4zq3w5PtGxdpXZDEh +pt9y26U+p6wkT2zeB3djAVRnKuwjEV7wrYq4CKwZoaRJFRkhTU3DwdKD7CuBKB/1m0t1l7vzYUnS aK2TPlfw==; Received: from authenticated user by zero.zsh.org with local id 1mKVIp-000D4S-Fq; Mon, 30 Aug 2021 00:37:31 +0000 Authentication-Results: zsh.org; iprev=pass (email.dondley.com) smtp.remote-ip=34.203.132.18; dkim=pass header.d=dondley.com header.s=default header.a=rsa-sha256; dmarc=pass header.from=dondley.com; arc=none Received: from email.dondley.com ([34.203.132.18]:58350) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mKVID-000CM8-Nl; Mon, 30 Aug 2021 00:36:54 +0000 Received: from email.dondley.com (email.dondley.com [34.203.132.18]) by email.dondley.com (Postfix) with ESMTPSA id 6C97E208BF for ; Sun, 29 Aug 2021 20:36:52 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dondley.com; s=default; t=1630283812; bh=Z8acSkJcwLcSfpXD25VIeuzQJh8nf+7458iNS3zOcGk=; h=Date:From:To:Subject:From; b=RQhoetfVfAd54OwTBAYA4ZqLZvZNzUtjkVNzGU85E67Tbz11/3dzSClRMrDZva1k/ fm9drRC0Sz+d2x5xCUJ90CzSonhRg48Lek+WyW2Cd7AQxoMdTVGSHhYLvyFhFoyN7E +h0a/xhKBGs37YPNtsPWGbjzmId1iuo6/DSI1PeuBZXvTR+Fx3teb4nBm+k4DFtP7s pxTt2vUe/Em2Hp9q4gQbwO8Puh6pTDCTIeqHXD6i15fNiLXh1zhxSHBNhKITJa/abt d2zcQIz6z2wVeN5qpHgLFiZX+i10oTERxG57j4DcCqkBRD1Q0oiuKR9NGmearBp/YO dSq7soPx7O0AQ== MIME-Version: 1.0 Date: Sun, 29 Aug 2021 20:36:51 -0400 From: Steve Dondley To: zsh users Subject: Unable to successfully set up FZF_DEFAULT_COMMAND User-Agent: Dondley Message-ID: X-Sender: s@dondley.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Seq: 26988 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: I'm running MacOS on a fresh user install. I'm trying to integrate the 'rg' command with fzf. The README page for fzf says to insert the following line into .zshrc: INITIAL_QUERY="" RG_PREFIX="rg --column --line-number --no-heading --color=always --smart-case " FZF_DEFAULT_COMMAND="$RG_PREFIX '$INITIAL_QUERY'" \ fzf --bind "change:reload:$RG_PREFIX {q} || true" \ --ansi --disabled --query "$INITIAL_QUERY" \ --height=50% --layout=reverse When I do add these lines, there are two problems: 1) When I reload zsh, the fzf command gets run with the rg command immediately. 2) When I type 'echo $FZF_DEFAULT_COMMAND' at the command prompt, the FZF_DEFAULT_COMMAND is not set. And then when I run 'fzf', I'll just get the default fzf behavior. When I try adding the "export" keyword to export the FZF_DEFAULT_COMMAND but that results in an error: /Users/test/.zshrc:export:3: not valid in this context: --bind. And 'echo $FZF_DEFAULT_COMMAND' shows just: rg --column --line-number --no-heading --color=always --smart-case '' I've searched around a great deal but I'm coming up empty. Can someone explain why I can't get this working?