My previous patches for bash/zsh did not put fish into consider. It's not POSIX-compliant, I have to generate a different config file. Gentoo/Exherho create different files for differnt shells, eg: /etc/profile.env for sh /etc/profile.csh for csh both comming from /etc/env.d. So, I could do something similar: