Skip to content
/ dotship Public

a cli-based dotfile manager - npx dotship for easy dotfile management

Notifications You must be signed in to change notification settings

8liam/dotship

Repository files navigation

dotship

demo

A TUI for managing dotfiles. Browse any public GitHub repository, pick the config files you need, and save them exactly where they belong on your machine.

Prerequisites

Installation

Global install

npm install -g dotship@latest

Then run it anywhere:

dotship

One-off execution

npx dotship@latest

How it works

  1. Paste a GitHub repo URL (e.g. https://github.com/user/dotfiles)
  2. Browse the repository's files and folders
  3. Select a file you want
  4. Enter the destination path on your machine (supports ~ expansion)
  5. Confirm — dotship downloads the file and saves it

If a file already exists at the destination, you'll see a warning before anything is overwritten.

Controls

Key Action
Navigate items
Enter Select / confirm
Backspace Go back
Esc Exit

Contributing

  1. Fork the repo and clone it
  2. Install dependencies:
npm install
  1. Start the dev watcher (recompiles on file changes):
npm run dev
  1. In a separate terminal, run the CLI:
npm start
  1. Run tests:
npm test

Project structure

source/
  cli.tsx            Entry point
  app.tsx            Main app state machine
  components/
    Header.tsx       Gradient ASCII header
    CommandInput.tsx  GitHub URL input
    RepoBrowser.tsx   File/folder browser
    DestinationInput.tsx  Save path input
    FileConfirm.tsx  Confirmation screen
  utils/
    github.ts        GitHub API + file system helpers

Submitting changes

  1. Create a branch for your change
  2. Make sure npm test passes
  3. Open a pull request against develop

License

MIT

About

a cli-based dotfile manager - npx dotship for easy dotfile management

Topics

Resources

Stars

Watchers

Forks

Contributors