Commit 2a38238

Anton Golub <mailbox@antongolub.ru>
2022-03-18 15:51:13
docs: mention workaround for bash_profile (#356)
* docs: mention workaround for bash_profile * docs: append $.prefix via += * docs: rm node issue ref
1 parent 504a844
Changed files (1)
README.md
@@ -534,6 +534,18 @@ await $`pwd`
 EOF
 ```
 
+#### Attaching .bash_profile/.zshrc
+
+By default `child_process` does not include aliases and bash functions. 
+But you are still able to do it by hand. Just attach necessary directives to `$.prefix`.
+
+```js
+{
+  $.prefix += 'export NVM_DIR=$HOME/.nvm; source $NVM_DIR/nvm.sh; '
+  await $`nvm -v`
+}
+```
+
 ## License
 
 [Apache-2.0](LICENSE)