Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

> > And then export PATH=<path-where-you-put-that-wrapper>:$PATH in .bashrc (or into vscode's ssh-config, if you dislike polluting your shell environment). Now vscode will launch the remote-server without enabling the annoying idle-shutdown. #24918

Closed
lfputnam opened this issue Nov 3, 2024 · 0 comments
Labels
spam Junk issues/PRs, 'nuff said.

Comments

@lfputnam
Copy link

lfputnam commented Nov 3, 2024

And then export PATH=<path-where-you-put-that-wrapper>:$PATH in .bashrc (or into vscode's ssh-config, if you dislike polluting your shell environment). Now vscode will launch the remote-server without enabling the annoying idle-shutdown.

Could you explain this a bit more? `

* How do we put this into vscode's ssh-config?

* Should this be on host or client?

The simpler way of doing this is modify your server's ~/.bashrc, add that line of exporting PATH, so that its bash shell automatically uses your modified version of sh.

However, if you mind modifying that global bash profile, you may also configure the client so that it loads the specified .bashrc you want. you may utilise the RemoteCommand option, changing it to like (generated by copilot, haven't tried out myself yet.)

Host myserver
    HostName example.com
    User myusername
    RemoteCommand bash --rcfile /path/to/.bashrc

check microsoft/vscode-remote-release#4474 for reference about utilising RemoteCommand.

Originally posted by @AgFlore in microsoft/vscode-remote-release#3096 (comment)

@queengooborg queengooborg added the spam Junk issues/PRs, 'nuff said. label Nov 3, 2024
@queengooborg queengooborg closed this as not planned Won't fix, can't repro, duplicate, stale Nov 3, 2024
@mdn mdn locked and limited conversation to collaborators Nov 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
spam Junk issues/PRs, 'nuff said.
Projects
None yet
Development

No branches or pull requests

2 participants