diff options
author | DrNuget <drnuget@outlook.com> | 2025-01-18 10:49:36 +0200 |
---|---|---|
committer | DrNuget <drnuget@outlook.com> | 2025-01-18 10:49:36 +0200 |
commit | cd3ceeb5c942e6d1cb3206eeb712cdb4f1dc1958 (patch) | |
tree | 5b6c9c453b2a6d9efac5ce6af8a4e81b01af7aad | |
parent | 992f00684714763e01ad857add4b62a25b7ec28a (diff) |
install script test
-rw-r--r-- | install.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..74895f8 --- /dev/null +++ b/install.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +# DrNuget's dotfile bootstrapping script +# This is free software licensed under GNU GPLv2.0 + +# Install all home-directory dotfiles +for i in $(ls -ap | grep -v /); do + rm $HOME/$i 2> /dev/null + ln -s $PWD/$i $HOME/$i +done + +# Install all .config dotfiles +for i in $(ls -a ./.config); do + rm -rf $HOME/.config/$i 2> /dev/null + ln -s $PWD/.config/$i $HOME/.config/$i +done + + +# Install all custom scripts +if [ ! -d "$HOME/.scripts" ]; then + mkdir $HOME/.scripts +fi + +for i in $(ls -a ./.scripts); do + ln -s $PWD/.scripts/$i $HOME/.scripts/$i +done |