.dotfiles/install.sh

13 lines
355 B
Bash
Raw Normal View History

2021-01-17 17:45:32 +00:00
#!/bin/bash
2021-12-06 18:44:24 +00:00
## DOWNLOADED FROM GIT LAB ##
2021-01-17 17:45:32 +00:00
# Find all dot files then if the original file exists, create a backup
# Once backed up to {file}.dtbak symlink the new dotfile in place
for file in $(find . -maxdepth 1 -name ".*" -type f -printf "%f\n" ); do
if [ -e ~/$file ]; then
mv -f ~/$file{,.dtbak}
fi
ln -s $PWD/$file ~/$file
done