gitpod-io/gitpod

dotfiles bootstrapping failed

dalisoft opened this issue · 3 comments

Bug description

I'm getting

Unable to open universal variable file '/': Permission denied

or ls not found when using Terminal on VSCode.

Screenshot 2024-07-06 at 06 43 45 Screenshot 2024-07-06 at 06 44 30

Steps to reproduce

  1. Use https://github.com/dalisoft/dotfiles as dotfiles (used scripts from gitpod dotfiles template)
  2. See error

Workspace affected

dalisoft-commitlintrs-hn9vwietu8j

Expected behavior

Dotfiles loading (my configs)

Example repository

https://github.com/nanoexpress/ultimate-oss

Anything else?

Maybe it's related to fish shell?

It's probably happening because you change the default shell with chsh to fish.

@axonasif Yeah, maybe as it's mentioned in Anything else but it should work, isn't it?

fish isn't a posix compliant shell, so this is expected. Do you need fish shell for every new terminal you create on Gitpod VSCode Web? In that case you may set it as the default shell profile on vscode, see https://code.visualstudio.com/docs/terminal/profiles

I have a personal project that also attempts to solve this, you might find it interesting: https://github.com/axonasif/dotsh#optimized-for-custom-shells

I'm marking this issue as "closed"