This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fish shell: cygwin.conf hiding user paths


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]