umayr / theme-sushi

Sushi theme for Fishshell.
MIT License
23 stars 20 forks source link

Load utility functions from a common place #23

Closed alyyousuf7 closed 3 years ago

alyyousuf7 commented 3 years ago

Apparently the last PR, #21 was still causing (even on Fisher). The fish_prompt.fish was not able to load some of the functions written in fish_right_prompt.fish. I'm assuming that the order of files being loaded has changed.

To solve that, I have started executing a newly created function, named _load_sushi, in fish_greeting.fish, fish_prompt.fish and fish_right_prompt.fish. The function itself does not do anything, but calling that function makes sure that the rest of the functions, defined along with _load_sushi, are loaded.

This way, we do not rely on the order of the files being loaded to function is properly.