Moved code in config.fish to functions