-
As far as I can tell run_onchange makes it so the file is executed whenever changes are made. I was wondering if could use it source my fish config every time I change it? In other words, every time I change the config or better yet anything within the folder it runs source ~/.config/fish/config.fish. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Sourcing files does not work the way you think it works. Sourcing a file only modifies the shell that sources the file and any subshells of that shell. Since all scripts run in subshells (that's the way it is on all UNIXes), sourcing a script has no effect outside the shell that sourced it. |
Beta Was this translation helpful? Give feedback.
Sourcing files does not work the way you think it works. Sourcing a file only modifies the shell that sources the file and any subshells of that shell. Since all scripts run in subshells (that's the way it is on all UNIXes), sourcing a script has no effect outside the shell that sourced it.