Devsy
Developing in a Workspace

Dotfiles in a Workspace

Devsy can clone your dotfiles repository into a workspace and install it, so your shell and tool settings are there every time.

Pass the repository with --dotfiles:

devsy workspace up https://github.com/example/repo --dotfiles https://github.com/my-user/my-dotfiles-repo

Devsy then looks in the repository for one of these install scripts and uses the first that completes successfully, trying the next script if one fails:

  • install.sh, install
  • bootstrap.sh, bootstrap, script/bootstrap
  • setup.sh, setup, setup/setup

If no script succeeds, Devsy links hidden files (names starting with .) into the container's $HOME. It skips directories, so .config/ needs an install script.

To run a different script, name it:

devsy workspace up https://github.com/example/repo --dotfiles https://github.com/my-user/my-dotfiles-repo --dotfiles-script custom/location/install.sh

For all workspaces

Set the options on the context so every new workspace uses them:

devsy context set -o DOTFILES_URL=https://github.com/my-user/my-dotfiles-repo -o DOTFILES_SCRIPT=bin/install.sh

On this page