Replies: 3 comments 2 replies
-
I think seeing what others are doing is helpful
It seems there's somewhat of a standard developing, so I think the It's important to note that both of these let the user set a repo in their user preferences. We have gotten feedback before that every user having a personal dotfiles repo is not something certain organizations wish to support. I think it's important we find a way to loosely couple startup behavior and the "managed dotfiles flow" if one exists so customers can replicate, extend, or replace this pattern with their own if they do not find it suitable. |
Beta Was this translation helpful? Give feedback.
-
For the first point: I am currently using the dotfiles repo in my workspaces to import settings like bash aliases or to import my gpg key to sign all my commits. I think for this kind of workflow dotfiles are ideal since you can simply specify a script that is run. |
Beta Was this translation helpful? Give feedback.
-
Current implementation is proposed here: #1696 |
Beta Was this translation helpful? Give feedback.
-
ℹ️ Current implementation (idea 2) is proposed in #1696
Intro
Dotfiles repositories can be to used source-control your personal configuration files (e.g
.vimrc
,.gitconfig
,.zshrc
), plugins, and utility scripts. With dotfiles, you can change computers or ssh into a new environment and quickly re-apply your personalization settings.Dotfiles support in Coder v1
In Coder v1, you can specify a path to your dotfiles repo. Coder looks for a
personalize
script and runs it every time the workspace starts along with cloning your repo into the workspace.This works well as Coder v1 only has container-based workspaces. In Coder v2, the workspace's lifecycle is completely up to the template! The personalize script is also quite long.
Idea 1
Templates (including our examples) can have a basic implementation of dotfiles, prompting users to add a dotfiles URL upon creation. This will just run as part of the init script.
Example
Pros:
Cons:
Idea 2
Coder CLI has have a helper command to clone and install dotfiles. This command can be more intelligent (detecting if git is present, running other install scripts, etc). This could still be added into the init script, or replaced with a custom dotfiles command.
Example
Pros:
Cons:
Idea 3
Pros:
Cons:
We'd love your thoughts
Beta Was this translation helpful? Give feedback.
All reactions