Move local paths to variables.
Bugfix. Fix cache dir.
This commit is contained in:
parent
af1740df8d
commit
c34e5806c2
3 changed files with 28 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue