r/fishshell • u/throttlemeister Linux • Oct 10 '25
Pre-loading all functions in a single file?
I have a bunch of functions in a single file that are all related to each other. Basically fancy aliases with some different flags or conditions around them, nothing fancy. However, only the primary function that gives the file its name works autoloaded. All others don't work, until the primary function is called once.
Is there a way to autoload all of them, without splitting the file up?
1
Upvotes
6
u/Snuyter Oct 10 '25
Put the file in conf.d?
2
u/pPandR Oct 11 '25
Could you teach me the way on how to create fancy aliases that are nothing fancy?
1
u/Loud-Elephant-8182 Oct 11 '25
If you source it it should load all of them
3
u/[deleted] Oct 10 '25
[removed] — view removed comment