dotter icon indicating copy to clipboard operation
dotter copied to clipboard

[FEATURE] Interactive setup

Open peterkos opened this issue 2 years ago • 2 comments
trafficstars

Describe the solution you'd like Would be neat to have a setup script like so:

> dotter setup
Welcome to dotter!
Do you have an existing dotfiles repo locally? (y/N) n
Let's create a new one!
Where should it live? (default: `~/.dotfiles`) ~/.dotfiles

Creating initial files...
Done!

(This would do the git init, .gitignore, touch config.toml global.toml)

Would also be cool for interactively setting up file locations. Maybe search for a list of known files, or an option to pass a list of locations?

Either way, something like ratatui could help provide the functionality.

Describe alternatives you've considered n/a

Additional context n/a

peterkos avatar Oct 28 '23 02:10 peterkos

Edit: Oh! I checked the issues, but not PRs 😅 I see #112 adds an interactive config.

I also plan on creating a more feature rich TUI for the local config including changing variables, but I wanted to get some feedback first before making deeper changes.

I belive this accomplishes the same goal? @SIMULATAN does this issue sound like what you're building, or is yours more for configuring an already-existing folder?

peterkos avatar Oct 28 '23 02:10 peterkos

There's a kinda-similar dotter init command, but it expects to be run in an already existing repository full of dotfiles (that presumably you want to migrate from using some other method)

SuperCuber avatar Oct 29 '23 13:10 SuperCuber