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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=lOdJXmPsG+YP8wWzq5GPw57OsC7UsqOB10YC4/lGE1Q5JGqN3GpcT IxDamoDRhccuqeZ6teBMxdJM4Xf3KllrJyhu5PoVriuAxXpxSPihVfHKby6sS2bP W4C60BcCkpONNV43dzA+5aq7u1Gsg5DHDAxEaxqKlUbu2kRPMRhVdY= 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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; s=default; bh=VM251Y3DGFrcSk0e+9QyvLIiKTc=; b=fzfjL9bFkoK2HeF/M5cBrzoos27m BV9oCwlPd2UUGnCefnxlu7O7RX2ciDe2dBX9Deae+XhfTfUnrQKN4T6M6tiXbA1t HO7mNNEMCNz39wLxa9YEJfTPta22GXAYZ4aRoCfp03OtjEchbmYMdhyvmoB7E3cq 0UQ6gy/cdz+5Upk= 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=-0.7 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*Ad:D*gov, H*r:Unknown, H*F:D*epa.gov X-HELO: blaine.gmane.org To: cygwin AT cygwin DOT com From: Andrew Schulman Subject: Re: Fish shell: cygwin.conf hiding user paths Date: Wed, 11 Oct 2017 10:17:24 -0400 Lines: 34 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive: encrypt X-IsSubscribed: yes > The file /etc/fish/conf.d/cygwin.conf has the following section: > > # Prepend system directories to PATH > for p in /bin /usr/local/bin > if not contains $p $PATH > set -x PATH $p $PATH > end > end > > The issue with this is that these get prepended before > fish_user_paths, essentially clobbering any user overrides. It also > swaps round if the user edits fish_user_paths, or when nesting fish, > which is surprising and unhelpful behaviour. > > A simple fix to the behaviour would be to run __fish_reconstruct_path > after, like so: > > # Prepend system directories to PATH > for p in /bin /usr/local/bin > if not contains $p $PATH > set -x PATH $p $PATH > end > end > __fish_reconstruct_path > > Which works just fine for me. Whek, thanks. I wasn't aware of either fish_user_paths or __fish_reconstruct_path. I added __fish_reconstruct_path as you suggested, and checked that it works. I'll upload a new release shortly. ANdrew -- 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