dotfiles/sync.sh
2019-02-07 11:49:20 +01:00

19 lines
386 B
Bash
Executable file

#!/bin/bash
# Adrien Luxey - Feb. 2019
# Script inspired by https://github.com/mathiasbynens/dotfiles/blob/master/bootstrap.sh
# cd to this file's directory
cd "$(dirname "${BASH_SOURCE}")";
#git pull origin master
# Get dotfiles (and dot directories) in current directory
dotfiles=$(find . -maxdepth 1 -regex "\./\..+" -printf "%f\n")
function doIt() {
ln -s $dotfiles ~
}
doIt