This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Fish shell: cygwin.conf hiding user paths
- From: Whek rin <whekrin at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 9 Oct 2017 18:18:40 +0100
- Subject: Fish shell: cygwin.conf hiding user paths
- Authentication-results: sourceware.org; auth=none
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