Open bachrc opened 2 years ago
The plugin doesn't read them in. I will add this to future work.
Should be easy to implement. spawn
function from child_process
does accept optional argument. We can give a shell here. It would automatically source it's .rc file. Documentation here
I think the shell option is already used for groovy. We can add it for shell/bash/powershell too. Maybe even add it in general for every language.
@bachrc it should work now. Can you test it and give me feedback?
Did you released an update on Obsidian or should I build the plugin ?
An update in Obsidian
I consider this as resolved, please reopen this issue otherwise.
This doesn't seem to work for me, doing echo $ZSHCONFIG
returns nothing whilst doing it in a terminal returns the path to my .zshrc as expected.
That is for a shell
language block with zsh
(my default shell). I can circumvent this by pre-executing source but this becomes an issue when using python blocks because variables for settings files like MATPLOTLIBRC
are not respected in the python blocks.
I want to execute a shell command (here, zsh), but I have path and environment variables defined in my .zshrc. Though, when I execute my command, the plgin doesn't read them ! Any ideas ?