delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/10/09/13:18:57

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:mime-version:from:date:message-id:subject:to
:content-type; q=dns; s=default; b=QoVGWU87kAJaEpUc4e63PDKPYp+bb
i31yehcIDsjGwQWKK1lOIxdbXRvd5izRK8lRsUnvv5KftspH9YUWKiTKUVGqG3zb
kNwVN1yFB+aEUd7w4UdLvjW55xa/2/2bxCT1wuGXmQ3rblAdNXx6O95BMDDAGY07
RynfObv7tmD2tk=
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:mime-version:from:date:message-id:subject:to
:content-type; s=default; bh=pBtL/sNeESb4vhe5EycSHI//QCE=; b=PK/
TrOBzHDnuqdp51JAX0e8+qkVSuUhDYTt0ayNosIi6SPcU2n4JLaoa/JSczSXnAIO
pnHJOOD0DjmtmaJZ6evf3aL48/o8l7sSsLVo/90jD5cVDEXKykqxYnrJd16dABcx
cNtRHiIfU3skTfq+0sdir3jIsGlwmUlhpa0SVkdE=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=
X-HELO: mail-wm0-f65.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=vSuBRYZviIBxTVzUpKM96jmRbsdUChWiCQTEZTcVAxE=; b=CV9JnLsXp5WuZql7fito05gq+XXwztV/EAd6om1h/N63AQ0gM57xDGdpZbhsCnY8XQ QFrpNEj2xgKxPA+triDFzyV+x2WN5ptEAAWvZaCDv57f4KkJlRLU1W3QYRMckLxbJ3OC CgKm+Y+UPvO4lssRoInpTB2Pm3STW0UB7aLdVOShzGOGoKVZ9YKwji+xlTv4glRBBje1 zfoazBNmf0eAUSecvsH5s+3RtWDrEzlUafrRvMfxtw1iYajqKl8L1fVaclaAUSbHsMiy iP+JGAN8lJk3vJUFac9kYQDWH8NNjCSdpnRB34DAmi1pKMaeVd0QIjnL15IOf6KFkm4c o0Mw==
X-Gm-Message-State: AMCzsaXEEEYA4i2sVU6CC6Vin4nrxmu5mjpn79Ilp9VQIKlO3YCzbbGZ z6ux65Dc4n0nqfDrs7/77B49bmV2wLaK8zZzmKrCCxLY
X-Google-Smtp-Source: AOwi7QBf6yxZPuV3qXRUW7zwzXrc+8UDgGmIu93o+bEJu4bcKfEdOodTXehKxcsj17qrdSETbsZ8hUqhrEGfbz9O658=
X-Received: by 10.80.171.77 with SMTP id t13mr15083703edc.180.1507569521052; Mon, 09 Oct 2017 10:18:41 -0700 (PDT)
MIME-Version: 1.0
From: Whek rin <whekrin AT gmail DOT com>
Date: Mon, 9 Oct 2017 18:18:40 +0100
Message-ID: <CACDsba3=cSCpZrWk-sSf22YQGsCvuhsS1kvK359oXxZyZEZr6Q@mail.gmail.com>
Subject: Fish shell: cygwin.conf hiding user paths
To: cygwin AT cygwin DOT com

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.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019