# Remote: Change "sh \-c" to "sh \-lc" to make config in $HOME/\.profile effective \(\#36760\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/bf5ed6d1c9795369310b5b9d6c752d9dc54991b5)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: bf5ed6d1c9795369310b5b9d6c752d9dc54991b5

Requested commit: bf5ed6d1c9795369310b5b9d6c752d9dc54991b5

Commit: bf5ed6d1c9795369310b5b9d6c752d9dc54991b5

Tree: 511d1c81ef1d999dd413fa729330e07250e63e92

Author: Rui Ning

Committer: GitHub

## Message

```
Remote: Change "sh -c" to "sh -lc" to make config in $HOME/.profile effective (#36760)

Closes #ISSUE

Release Notes:

- The environment of original remote dev cannot be changed without sudo
because of the behavior of "sh -c". This PR changes "sh -c" to "sh -lc"
to let the shell source $HOME/.profile and support customized
environment like customized $PATH variable.
```

## Parents

- [bb5cfe118f588336d54b0499be998cd7744fb8a2](https://git.cafe/gitcafe/zed/commit/bb5cfe118f588336d54b0499be998cd7744fb8a2?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/bf5ed6d1c9795369310b5b9d6c752d9dc54991b5?format=markdown)
