Skip to content

jasonmorganson/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2,514 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles, bootstrapped with mise.

Setup

Bootstrap a new machine without GitHub authentication, providing the GitHub username whose public profile and SSH keys should be used:

curl -fsSL https://gist.github.com/jasonmorganson/8a6fae35533bba8594a3e05e0bbe2f4d/raw/setup.sh | sh -s -- your-github-user

Source

Setup script

#!/bin/sh
set -eu

repo="$HOME/.local/share/dotfiles"
export GITHUB_USER="${1:-${GITHUB_USER:?usage: setup.sh GITHUB_USERNAME}}"

rm -rf "$repo"
mkdir -p "${repo%/*}"
git clone https://github.com/jasonmorganson/dotfiles.git "$repo"
"$repo/install.sh"
/usr/local/bin/mise set --file "$HOME/.config/mise/config.local.toml" "GITHUB_USER=$GITHUB_USER"

Usage

Pull the latest dotfiles and reapply the machine configuration:

bootstrap

install.sh is the no-argument setup entrypoint used by Codespaces and similar environments. It installs mise to /usr/local/bin before bootstrapping:

mise bootstrap --yes --force-dotfiles

See reference.

Docker Compose

docker-compose run dotfiles

About

Dotfiles, managed with chezmoi

Topics

Resources

Stars

Watchers

Forks

Used by

Contributors

Languages