punktdateien/README.md

69 lines
1.7 KiB
Markdown
Raw Normal View History

# jstm's dotfiles
2023-12-09 15:27:27 +01:00
## Read this first!
2024-06-02 17:24:49 +02:00
Running `install.sh` or `uninstall.sh` will delete and change some things in your home directory! Make sure to first read and understand both scripts before continuing.
2023-12-09 15:27:27 +01:00
## Managing
### Installing
2024-06-03 20:13:35 +02:00
These commands will remove some files and install software.
2024-06-02 17:24:49 +02:00
```bash
2024-06-03 20:17:30 +02:00
# Clone repository
2024-06-02 17:24:49 +02:00
git clone https://git.staropensource.de/JeremyStarTM/punktdateien.git "${HOME}/.dotfiles"
cd "${HOME}/.dotfiles"
2024-06-03 20:17:30 +02:00
# Install and link files
./install.sh
2024-06-03 20:17:30 +02:00
# Install software
# Append --gui to install GUI packages too
bin/install-software
```
### Updating
2024-06-03 20:13:35 +02:00
These commands will remove some files, pull changes and link everything again. \
Make sure to execute `dotfiles-install-software [-gui]` after updating.
2024-06-02 17:24:49 +02:00
```bash
dotfiles-updater
```
### Uninstalling
2024-06-03 20:13:35 +02:00
This will remove all installed files & directories and remove `~/.dotfiles` completely.
2024-06-02 17:24:49 +02:00
```bash
2024-06-03 20:17:30 +02:00
# Unlink files
2024-06-02 17:24:49 +02:00
cd "${HOME}/.dotfiles"
2023-12-09 15:47:41 +01:00
env REMOVE_INSTALLBIT=true REMOVE_REPOSITORIES=true ./uninstall.sh
2024-06-03 20:17:30 +02:00
# Remove ~/.dotfiles
2024-06-02 17:24:49 +02:00
cd "${HOME}"
2024-06-03 20:17:30 +02:00
rm -rf ".dotfiles"
```
### Repairing
This will *should* repair any issues you could have with this repository.
2024-06-02 17:24:49 +02:00
```bash
2024-06-03 20:18:37 +02:00
cd "${HOME}/.dotfiles"
2024-06-03 20:17:30 +02:00
# Remove legacy links"
./uninstall.sh --remove-legacy-paths
./uninstall.sh --remove-unshared-bashrcd
# Unlink files
env REMOVE_INSTALLBIT=true REMOVE_REPOSITORIES=true ./uninstall.sh
2024-06-03 20:17:30 +02:00
# Link files
./install.sh
2024-06-03 20:17:30 +02:00
# Force update
2024-06-02 17:24:49 +02:00
"${HOME}/.local/bin/dotfiles-updater" --force
2024-06-03 20:17:30 +02:00
# Install required software
# Append --gui to install/update GUI packages too
"${HOME}/.local/bin/dotfiles-install-software"
2024-02-11 04:24:42 +01:00
```
2024-06-02 17:24:49 +02:00
If you are still facing issues, open an issue.
2024-06-02 17:22:07 +02:00
# Licensing
All of my own scripts are licensed under the GNU AGPL v3. \
Work of others may be licensed under different terms.