Open sagebind opened 7 years ago
Using fish_greeting to define functions and run initialization code for themes should be considered unreliable and breaks in the following cases:
fish_greeting
The recommended approach is to lazy-load defaults using set -q ...; or set -g ... and to place functions in individual files in a functions directory.
set -q ...; or set -g ...
functions
See the discussion in https://github.com/oh-my-fish/oh-my-fish/issues/483.
Using
fish_greeting
to define functions and run initialization code for themes should be considered unreliable and breaks in the following cases:fish_greeting
is not executed.fish_greeting
variable or function, overriding the theme's default greeting. Again, the theme'sfish_greeting
is not executed.The recommended approach is to lazy-load defaults using
set -q ...; or set -g ...
and to place functions in individual files in afunctions
directory.See the discussion in https://github.com/oh-my-fish/oh-my-fish/issues/483.