dotfiles/link.sh

13 lines
208 B
Bash
Raw Normal View History

2020-06-28 07:07:02 +03:00
#!/bin/sh
2020-07-01 10:43:10 +03:00
folders=($(ls $PWD/config))
files=("bashrc")
2020-06-28 07:07:02 +03:00
for folder in "${folders[@]}"; do
2020-07-01 10:43:10 +03:00
ln -sf $PWD/config/$folder $HOME/.config/
2020-06-28 07:07:02 +03:00
done
2020-06-30 01:55:42 +03:00
2020-07-01 10:43:10 +03:00
for file in "${files[@]}"; do
ln -sf $PWD/$file $HOME/.$file
done