Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mossop/dotfiles
My personal configuration scripts.
https://github.com/mossop/dotfiles
Last synced: 26 days ago
JSON representation
My personal configuration scripts.
- Host: GitHub
- URL: https://github.com/mossop/dotfiles
- Owner: Mossop
- Created: 2020-04-27T23:11:36.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-09-12T10:44:08.000Z (about 2 months ago)
- Last Synced: 2024-09-12T22:07:21.380Z (about 2 months ago)
- Language: Shell
- Size: 75.2 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
There are my personal [dotfiles](https://dotfiles.github.io/) and my hacked
together install/update system. Honestly there is probably not much here of
interest to anyone else, most of these notes are for my own benefit so I
remember how this all works.## Installing
Something similar to the following:
```
curl https://raw.githubusercontent.com/Mossop/dotfiles/main/bootstrap | sh
```This will download and install the repo to `$HOME/dotfiles` and install the
configuration files and update `$HOME/.profile` to call `$HOME/dotfiles/scripts/startup.sh`
on login.Under the hood the [`bootstrap`](https://github.com/Mossop/dotfiles/blob/main/bootstrap)
script attempts to download the contents of this repository and extract it to
`$HOME/dotfiles`. It will prefer to use `git` if installed but will fall back to
using curl or wget to download an archive of the current state of the repository.After extraction [`scripts/post-bootstrap.sh`](https://github.com/Mossop/dotfiles/blob/main/scripts/post-bootstrap.sh)
is executed which writes the dotfile configuration file to `$HOME/dotfiles/.config`
and then executes [`install`](https://github.com/Mossop/dotfiles/blob/main/install)
to actually install everything.## Updating
```
dotfiles/update
```The actual updating is performed by [`scripts/do-update.sh`](https://github.com/Mossop/dotfiles/blob/main/scripts/do-update.sh)
which is copied to a temporary location before being executed in case the update
process modifies that file.The update process attempts to use `git` to update the repository. This includes
attempting to convert the current dotfiles directory into a git repository if
git is available. If git is not available then it downloads the current archive
of dotfiles and extracts it to a temporary directory. The current dotfiles
directory is wiped excluding the `.config` file and then the new files are copied
into place.Afterwards [`scripts/post-update.sh`](https://github.com/Mossop/dotfiles/blob/main/scripts/post-update.sh)
is executed which removes the temporary update script and then executes
[`install`](https://github.com/Mossop/dotfiles/blob/main/install) to install
everything.