How do you install pythonbrew when using the Fish Shell?

You can place the following lines into your ~/.config/fish/config.fish file:

if test -s ~/.pythonbrew/etc/bashrc
    . ~/.pythonbrew/etc/bashrc
end

However, the bashrc file in ~/.pythonbrew/etc/ is not recognized by the fish shell either, so it needs to be translated also.

(I have not finished fishifying it yet.)