Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 11 lines (8 sloc) 264 Bytes
#!/bin/bash
# ensure we're on the base of the dotfiles repo
toplevel="$(git rev-parse --show-toplevel)" && cd "$toplevel" || exit
for f in .[!.]*; do
[[ $f = .git ]] && continue
[[ -f ~/$f || -L ~/$f ]] && mv ~/"$f"{,.bak}
ln -s "$toplevel/$f" ~/"$f"
done