Sample Header Ad - 728x90

How is "set -g" really different from "set" on fish shell?

2 votes
1 answer
363 views
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_greeting > > or set -g fish_greeting in 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?
Asked by jsx97 (1347 rep)
Mar 5, 2025, 07:58 AM
Last activity: Mar 5, 2025, 04:36 PM