It was not clear that the name of the file should match the name of the function.
Single dot has been deprecated and can cause issues with users on newer version: https://github.com/fish-shell/fish-shell/issues/310