What should I do to let ngspice know where to search for component libraries? I have created a file in my /home/user directory named .spiceinit. Can I use it to defined paths for component searches?
I search online and found the following:
https://nmg.gitlab.io/ngspice-manual/interactiveinterpreter/internallypredefinedvariables.html
The answer to my own question is:
https://nmg.gitlab.io/ngspice-manual/interactiveinterpreter/internallypredefinedvariables.html
The answer to my own question is:
sourcepath
A list of the directories to search when a source command is given.The default is the current directory and the standard ngspicelibrary (/usr/local/lib/ngspice, or whatever LIBPATH is #defined toin the ngspice source). The command
set sourcepath = ( e:/ D:/ . c:/spice/examples )
will overwrite the default. The search sequence now is: currentdirectory, e:/, d:/, current directory (again due to .),c:/spice/examples. 'Current directory' is depending on the OS.