Move local paths to variables.

Bugfix.

Fix cache dir.
This commit is contained in:
Bartek Stalewski 2024-03-30 00:51:39 +01:00
parent af1740df8d
commit c34e5806c2
No known key found for this signature in database
3 changed files with 28 additions and 25 deletions

View file

@ -1,15 +1,19 @@
#!/bin/sh
# variables
LOCAL_BIN_DIR=${HOME}/.local/bin
XDG_CONFIG_HOME=${HOME}/.config
# prepare local dirs
mkdir -p ~/.config ~/.local/bin
mkdir -p ${XDG_CONFIG_HOME} ${LOCAL_BIN_DIR}
# install configs
for i in _configs/*; do
rm -rf ~/.config/$(basename $i)
ln -sf $(pwd)/${i} ~/.config
rm -rf ${XDG_CONFIG_HOME}/$(basename $i)
ln -sf $(pwd)/${i} ${XDG_CONFIG_HOME}
done
# install scripts
for i in _scripts/*; do
ln -sf $(pwd)/${i} ~/.local/bin
ln -sf $(pwd)/${i} ${LOCAL_BIN_DIR}
done