Use function instead of alias

speeds up shell boot as per https://github.com/fish-shell/fish-shell/issues/828