Fish Shell Config Follow
I recently installed a new fish function, but then latter uninstalled it. When I open a MacOS terminal (which starts in a fish shell) everything works as expected. However, the embedded Rubymine terminal prints the following each time I start a new embedded terminal.
> source: Error encountered while sourcing file '~/.config/fish/functions/my-old-function.fish':
> source: No such file or directory
A assume I need to cleanup an updated file somewhere for Rubymine, unless Rubymine cached something? Either way, I can't find the config file attempting to source a missing file.
Suggestions on where to look?
Please sign in to leave a comment.
Could you please attach a screenshot from Preferences | Tools | Terminal. In addition, which RubyMine version do you use?
I resolved the issue and why the embedded terminal in Rubymine behaves differently than the shell.
Rubymine uses the following fish shell script to load the fish environment:
This script includes the following lines of code
The above script loads all function scripts in the functions folder. However, the behavior of the default fish terminal does not load all functions. Instead, it loads `~/.config/fish/config.fish` and then inside the `config.fish` folder you define which scripts in the functions folder you want to load.
Coincidentally, the same Rubymine fish script also includes:
So for me, if I comment (or remove) the code which auto-loads all functions, then both internal and external shells behave the same.
Thank you for sharing your workaround. That appears to be a known problem so could you please add your vote to it: