Devsy
Developing in a Workspace

Dotfiles in a Workspace

Devsy clones your dotfiles repository into a workspace and installs 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 looks in the repository for these install scripts and runs the first one that succeeds. If a script fails, Devsy tries the next one:

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

If no script succeeds, Devsy links files whose names start with . into the container's $HOME. It skips directories, so a .config/ directory needs an install script.

To run a different script, pass its path:

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

Set defaults 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