Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.95 KB

README.md

File metadata and controls

36 lines (26 loc) · 1.95 KB

Some dotfiles for chezmoi dotfile manager

Run the following command. Use on your own responsibility. The script might burn your RAM, shatter your microwave to pieces, tormenting children in the US or Russia, cause further climate change or even let nuclear explosions happen...

sh -c "$(wget https://raw.githubusercontent.com/drook207/dotfiles/main/bin/executable_bootstrap.sh -O -)"

if you have no wget, just use this oneliner:

apt update && apt install wget && sh -c "$(wget https://raw.githubusercontent.com/drook/dotfiles/main/bin/executable_bootstrap.sh -O -)" 

Overwriting the github repo for chezmoi initialization

By default, chezmoi will simply use my hardcoded github username as argument to the contained chezmoi install call:

sh -c "$(curl -fsLS get.chezmoi.io)" -- -b "$HOME"/bin init --apply drook207

By passing arguments to the bootstrap call, you can change this behaviour. The supported arguments are -b <branchname> and -r <repo specifier>.

A few examples:

# The default branch of an arbitrary github repository named `githubrepo` of user `githubusername` is used
sh -c "$(wget https://raw.githubusercontent.com/drook207/dotfiles/main/bin/executable_bootstrap.sh -O -)" -- -r githubusername/githubrepo
# The default branch of a github repository called `dotfiles` of user `githubusername` is used
sh -c "$(wget https://raw.githubusercontent.com/drook207/dotfiles/main/bin/executable_bootstrap.sh -O -)" -- -r githubusername
# Some different branch than the default branch of a github repo called `dotfiles` of user `githubusername` is used
sh -c "$(wget https://raw.githubusercontent.com/drook207/dotfiles/main/bin/executable_bootstrap.sh -O  -)" -- -b mybranch -r githubusername
# An absolutely addressed remote repository is used with a specific branch
sh -c "$(wget https://raw.githubusercontent.com/drook207/dotfiles/main/bin/executable_bootstrap.sh -O -)" -- -b mybranch -r https://git.my.domain/user/repo.git