Add check for new installs

This commit is contained in:
JeremyStar™ 2023-12-09 15:45:17 +01:00
parent cd7a9c526a
commit fde2bf54fa
2 changed files with 9 additions and 1 deletions

View file

@ -48,7 +48,7 @@ git pull
./install.sh
```
## Uninstalling
This will reset all programs to their original state and remove ~/.dotfiles completely.
This will reset all programs to their original state and remove `~/.dotfiles` completely.
```bash
cd "$HOME/.dotfiles"
env REMOVE_REPOSITORIES=true ./uninstall.sh

View file

@ -1,6 +1,11 @@
#!/bin/bash
# jeremystartm's dotfiles "installer"
if [ ! -a "$HOME/.config/.jstm_dotfiles" ]; then
echo ":: Removing files"
./uninstall.sh &> /dev/null
fi
# useful function
function link() {
if [ -a "${HOME}/${2}" ]; then
@ -70,6 +75,9 @@ link "konsolerc" ".config/konsolerc"
link "konsole" ".local/share/konsole"
link "dolphinrc" ".config/dolphinrc"
# write install file
echo "pls don't remove" > "$HOME/.config/.jstm_dotfiles"
# check for executables
if ! which qt5ct &> /dev/null; then
echo ":: Warning: qt5ct is not in your PATH."