dotfiles/install.sh

26 lines
374 B
Bash
Raw Normal View History

2020-09-08 15:25:32 -04:00
#!/bin/sh
2021-08-11 13:45:00 -04:00
cd "$(dirname "$0")"
PWD="$(pwd)"
2020-09-08 15:25:32 -04:00
2021-08-11 13:45:00 -04:00
#dotfiles from
#~/.config
for f in config/*; do
mkdir -p "$HOME/.$f"
for d in $f/*; do
ln -sf "$PWD/$d" "$HOME/.$d"
done
done
2020-09-08 15:25:32 -04:00
2021-08-11 13:45:00 -04:00
#dotfiles from
#~
for f in home/*; do
ln -sf "$PWD/$f" "$HOME/.$(basename $f)"
done
2020-09-08 15:25:32 -04:00
2021-08-11 13:45:00 -04:00
#scripts
#~/.local/bin
mkdir -p "$HOME/.local/bin"
for f in local/bin/*; do
ln -sf "$PWD/$f" "$HOME/.$f"
done