2022-12-25 15:55:37 +00:00
# ~ajhalili2006's dotfiles
This is the redesigned dotfiles repo for ~ajhalili2006, because my first repo became a mess so hard
2022-12-26 17:34:08 +00:00
to fix it in, built from scratch and based on < https: / / drewdevault . com / 2019 / 12 / 30 / dotfiles . html > .
2022-12-25 15:55:37 +00:00
2023-08-12 02:56:06 +00:00
## Quick deploy
```bash
curl -fsSL https://scripts.andreijiroh.eu.org/dotfiles/setup.sh | bash -
```
2022-12-25 15:55:37 +00:00
## Available Git mirrors
2023-10-08 01:26:02 +00:00
This project is hosted on [hosted instance of sourcehut git ](https://git.sr.ht ) at the
2023-09-04 15:42:24 +00:00
[`~ajhalili2006/dotfiles`][git.sr.ht] Git repository, alongside the following
2023-01-05 17:29:53 +00:00
Git mirrors:
2023-10-08 01:26:02 +00:00
* mau.dev: < https: // mau . dev / andreijiroh . dev / dotfiles > (technically canonical due
to how mirroring work and usualy pushed there first)
2023-09-04 15:42:24 +00:00
* GitHub: < https: // github . com / ajhalili2006 / dotfiles >
2023-01-05 17:29:53 +00:00
* Launchpad.net: < https: // git . launchpad . net / ajhalili2006-dotfiles >
* ~vern git: < https: // git . vern . cc / ajhalili2006 / dotfiles-modern >
* tildegit: < https: // tildegit . org / ajhalili2006 / dotfiles-modern >
2023-09-04 15:42:24 +00:00
[git.sr.ht]: https://git.sr.ht/~ajhalili2006/dotfiles
2022-12-25 15:55:37 +00:00
## Setup
2023-12-16 02:51:57 +00:00
### With yadm
```shell
# on a Alpine Linux sandbox VM (or chroot)
apk add yadm git gnupg
yadm clone https://mau.dev/andreijiroh.dev/dotfiles
yadm restore --staged $HOME
yadm checkout -- $HOME
# run the bootstrap script
yadm bootstrap
```
### Without yadm
2023-01-05 17:29:53 +00:00
It's easy, although this will be different because `git clone <clone-url-above>` will
2022-12-25 15:55:37 +00:00
scream some errors when attempt to do so after creating a user with their own home directory.
```bash
# go back to your $HOME
cd ~
# init repo, add origin to git.sr.ht repo (have you got your SSH keys?)
git init
2023-01-05 17:29:53 +00:00
git remote add origin git@git.sr.ht:~ajhalili2006/dotfiles-modern
# another route here is cloning the repo before the user creation take place
# so you can skip the "fetch and force checkout hellscape"
git clone git@git.sr.ht:~ajhalili2006/dotfiles-modern /home/ajhalili2006
# ...create user "ajhalili2006" here
chown ajhalili2006:ajhalili2006 -Rv /home/ajhalili2006
2022-12-25 15:55:37 +00:00
2023-08-12 02:56:06 +00:00
# fetch and force checkout, RIP any unstashed hellscapes
2022-12-25 15:55:37 +00:00
git fetch
git checkout -f main
2023-09-04 15:42:24 +00:00
# logout and login again to refresh your shell env
2022-12-25 15:55:37 +00:00
```
## Codespaces + Gitpod specifics
Because this cause confusion to most cloud dev environment services, although they'll symlink
stuff when there's no install script, but that is a design flaw to be work around in the future.
## License
TL;DR before we dive in to legalese:
* Everything is licensed under both MIT + MPL 2.0, unless otherwise noted. Most third-party
code and submodules used here aren't covered by this policy.
2023-01-05 17:29:53 +00:00
* Open source !== open contribution. Since this is just a personal project, expect your contributions to be
either rewritten or declined.
* For contributors who wish to send patches, either an agreement to the DCO (via `--signoff` flag on commits and
when sending email patches via `~ajhalili2006/public-inbox@lists.sr.ht` ) or through signing the project-specific
[Individual CLA][sign-link] alongside this specific [copyright transfer agreement on this project][cta-ajhalili2006-dotfiles]
2023-08-12 02:56:06 +00:00
(requires separate signature, uses FSFe's FLA 2.0) is mostly enough. Doing both is recommended to avoid further legal headaches down the line, atlhough ~sircmpwn recommends
against signing the CLA, especially due to legalities around copyright assignments in OSS.
2023-01-05 17:29:53 +00:00
[cta-ajhalili2006-dotfiles]: https://cla.recaptime.eu.org/sign/copyright-assignment?project=ajhalili2006-dotfiles& requireClaSignature=true& claType=FLA-FSFE
[sign-link]: https://cla.recaptime.eu.org/sign/per-project-basis?type=individual& project=ajhalili2006-dotfiles& claType=FLA-FSFE