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

Add OrbStack to PATH in non-interactive shell #1155

Open
dqbd opened this issue Apr 28, 2024 · 0 comments
Open

Add OrbStack to PATH in non-interactive shell #1155

dqbd opened this issue Apr 28, 2024 · 0 comments
Labels
t/feature New feature

Comments

@dqbd
Copy link

dqbd commented Apr 28, 2024

When trying to connect to a remote OrbStack instance using Docker Context feature, the following error occurs.

# Using host=ssh://[host]:/Users/[username]/.orbstack/run/docker.sock

zsh:1: command not found: docker

This is due to initialisation script not being run when running a non-interactive shell. This can be remedied by adding the following line in ~/.zshenv

# Same as in .zprofile
source "$HOME/.orbstack/shell/init.zsh" 2>/dev/null || :
@dqbd dqbd added the t/feature New feature label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t/feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant