dotfiles/install
Ludwig Lehnert 31eee37328 update
2024-03-02 10:15:11 +01:00

17 lines
430 B
Bash
Executable File

#!/usr/bin/bash
DIR=$(dirname $(realpath "$0"))
cd $DIR
# install config files
for filename in $(ls -p | grep -v "install" | grep -v "/" | grep -v "README.md"); do
app=$(echo $filename | tr "-" "\n" | head -1)
appdir="$HOME/.config/$app"
mkdir -p $appdir
cp $filename "$appdir/${filename:${#app}+1:200}"
done
# install backrounds
mkdir -p "$HOME/.local/share/wallpapers"
cp ./backgrounds/* "$HOME/.local/share/wallpapers/"