I am trying to understand how the set command works on fish shell.
For example, to remove the greeting message, the fish manual suggests to:
To empty the text, with the default greeting function:
set -U fish_greetingor
set -g fish_greetingin config.fish.
But why it is suggested to use set -g fish_greeting in config.fish instead of just set fish_greeting? What is the practical purpose of -g here?